/*
	Theme Name: Tra Le Linee
	Theme URI: 
	Author:  Veronika Udod
	Author URI: 
	Version: 2.0
	Description: 
	Tags: 
	Licence: GPL v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Text Domain: ecoffset.it
*/

/* MAIN SETTINGS */


:root{
	--black: #000000;
	--white: #DFDFDF;
	--grey: #696969;
}

 
body{
	width: 100%;
	overflow-x: hidden;
	margin: 0;
}

html{
	overflow-x: hidden;
}

body, html{
  scroll-behavior: smooth;
 /* overflow-y: scroll;*/
  scroll-snap-type: y mandatory;
	cursor: none;
}

body.light-theme {
    --bg-color: #fff;
    --text-color: var(--black);
}

body.dark-theme {
    --bg-color: var(--black);
    --text-color: var(--white);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}



.theme-toggle {
  position: fixed;
  right: 20px;
  z-index: 9999;
  background-color: transparent;
  color: var(--text-color);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
	font-family: "ABCDiatype-Bold-Trial";
}

.theme-toggle:hover {
  opacity: 0.8;
}


@font-face {
  font-family: "ABCDiatype-Light-Trial";
  src: url("/wp-content/themes/themebase/inc/assets/fonts/ABCDiatype-Light-Trial.woff")
      format("woff2"),
    url("GrandSland-B-Side.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABCDiatype-Regular-Trial";
  src: url("/wp-content/themes/themebase/inc/assets/fonts/ABCDiatype-Regular-Trial.woff")
      format("woff2"),
    url("GrandSland-B-Side.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: "ABCDiatype-Medium-Trial";
  src: url("/wp-content/themes/themebase/inc/assets/fonts/ABCDiatype-Medium-Trial.woff")
      format("woff2"),
    url("GrandSland-B-Side.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABCDiatype-Heavy-Trial";
  src: url("/wp-content/themes/themebase/inc/assets/fonts/ABCDiatype-Heavy-Trial.woff")
      format("woff2"),
    url("GrandSland-B-Side.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABCDiatype-Bold-Trial";
  src: url("/wp-content/themes/themebase/inc/assets/fonts/ABCDiatype-Bold-Trial.woff")
      format("woff2"),
    url("GrandSland-B-Side.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

*{
	font-family: "ABCDiatype-Light-Trial";
}

h1{
	font-size: 90px;
	line-height: 93px;
	font-family: "ABCDiatype-Light-Trial";
	letter-spacing: -4px;
}

h2{
	font-size: 52px;
	line-height: 110px;
	letter-spacing: -2px;
}

h3{
	font-size: 30px;
}

h4{
	font-size: 24px;
	font-family: "ABCDiatype-Medium-Trial";
}

p{
	font-size: 14px;
	margin-bottom: 0;
}

.text-white{
	color: var(--white);
}

.text-grey{
	color: var(--grey);
}

.text-black{
	color: var(--black);
}

.max-w-1360{
	max-width: 1360px;
	margin: auto;
}

.position-relative{
	position: relative;
}

.w-regular{
	font-family: "ABCDiatype-Regular-Trial";
}

.w-light{
	font-family: "ABCDiatype-Light-Trial";
}

.btn-w-border a{
	border: 1px solid var(--text-color);
	background: transparent;
	border-radius: 0;
	font-size: 24px;
	transition: 0.5s;
	color: var(--text-color);


}

.btn-w-border a:hover{
	color: var(--text-color);
}

/* CURSOR */
#cursor{
	aspect-ratio: 1;
	border-radius: 50%;
	width: 0.3rem;
	position: fixed;
	transform: translate(-50%, -50%);
	background-color: #FFFFFF;
	z-index: 100;
	/*top: 150px;
	left: 470px;*/
	pointer-events: none;
	transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

#cursor-shadow{
	aspect-ratio: 1;
	border-radius: 50%;
	width: 4.5rem;
	position: fixed;
	transform: translate(-50%, -50%);
	border: 1px solid #FFFFFF;
	z-index: 100;
	top: 150px;
	left: 470px;
	pointer-events: none;
	transition: opacity 0.1s ease;
}


/*.snap-section {
  height: 100vh;
  width: 100%;
  overflow: hidden;
}*/

/* MAIN SETTINGS MOBILE */
@media only screen and (max-width: 768px){
	h1{
		font-size: 42px;
	}
	
	h2{
		font-size: 18px;
		letter-spacing:  0;
	}
	
	h6{
		font-size: 14px;
	}
	
	p{
		font-size: 14px;
	}
	
	.max-w-1280 {
		max-width: 100%;
		padding: 0;
	  }
}

/* NAVBAR */

.custom-header {
	padding-left: 40px;
}
.navbar-toggler-icon {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	vertical-align: middle;
	background-image: url(/wp-content/uploads/2025/10/ico-hambergur.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100%;
}
.offcanvas {
	background-color: #000;
	
}

.m-main-menu {
	padding: 100px 10px 50px 10px;
}
.btn-close {

	color: #DFDFDF;
	background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23DFDFDF'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
	
	opacity: .9;
}
.logo-letter {
	font-size: 25px !important;
	padding: 0 2px !important;
}
body.dark-theme nav {
    padding-top: 30px;
    min-height: 100px;
    background-image: linear-gradient(180deg, #000, transparent);
    position: fixed;
    width: 100%;
	z-index: 99;
}

body.light-theme nav {
    padding-top: 30px;
    min-height: 100px;
    background-image: transparent;
    position: fixed;
    width: 100%;
	z-index: 99;
}

.main-menu {
	display: flex;
	gap: 20px;
	margin-bottom: 0;
}

.main-menu li{
	list-style: none;
}

.main-menu li a{
	color: var(--grey);
	text-decoration: none;
	font-size: 14px;
	font-family: "ABCDiatype-Bold-Trial";
}

.logo-nav{
	width: auto;
	display: flex;
	align-items: center;
	max-width: 133px;
}
.h-logo img {
	max-width: 133px;
}
.logo-theme {
  max-width: 100%;
}

.logo-theme.logo-light {
    display: none;
}

.logo-theme.logo-dark {
    display: block;
}

body.light-theme .theme-text {
  color: var(--black);
}

/* Testo chiaro su sfondo scuro */
body.dark-theme .theme-text {
  color: var(--white);
}


/* NAVBAR MOBILE */
@media only screen and (max-width: 768px){
	.custom-header {
	padding-left: 12px;
}
			.custom-header .h-logo {
	width: 80%;
}
		.custom-header .hambergur {
	width: 20%;
}
	.menu-item {
	padding: 10px 0;
	border-bottom: 1px solid #ffffff50;
	} 
	.menu-item a {
	font-size: 36px;
	text-decoration: none;
	color: white;
	letter-spacing: -2px;	
}
	.offcanvas-header, .offcanvas-body {
	
	padding: 25px 5px;
}
	
/** mobile switcher **/
	
	.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
input:checked + .custom-toggle {
  background-color: #2196F3;
}

input:focus + .custom-toggle {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .custom-toggle:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
.custom-toggle {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
	border: 1px solid #DFDFDF;
  -webkit-transition: .4s;
  transition: .4s;
}

.custom-toggle:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 3px;
  background-color: #DFDFDF;
  -webkit-transition: .4s;
  transition: .4s;
}

/* Rounded sliders */
.custom-toggle.round {
  border-radius: 34px;
}

.custom-toggle.round:before {
  border-radius: 50%;
}
}

/* HOMEPAGE */

/*********CONTACT US************/
/*.contact-us-form .form-control {
    padding: 20px;
    border-radius: 0;
	color: var(--white);
	text-transform: uppercase;
 	resize: none;
	background-color: #333333;
	border: 0;
}

.contact-us-form .form-control::placeholder {
	color: var(--grey);
	text-transform: uppercase;
}

.contact-us-form .btn-submit .form-control {
   	background: transparent;
	border: 1px solid var(--green);
	color: var(--white);
}

.contact-us-form p{
	margin-bottom: 24px;
}

.contact-us-form .wpcf7-acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 14px;
    height: 14px;
    min-height: 14px;
    border: 1px solid var(--white);
    display: inline-block;
    position: relative;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.contact-us-form .wpcf7-acceptance span{
    color: var(--grey);
	font-size: 14px;
}

.contact-us-form .wpcf7-acceptance input[type="checkbox"]:checked {
    background-color: var(--white);
}*/

.wpcf7 form.sent .wpcf7-response-output {
    border-color: transparent;
	color: var(--grey);
}

.wpcf7 .wpcf7-response-output {
    color: var(--white);
}

/* FOOTER */
footer{
	padding: 40px;
}

footer img{
	padding-bottom: 34px;
}

footer p, footer a{
	color: var(--text-color);
	font-size: 14px;
}

footer a{
	text-decoration: none;
	transition: 0.5s;
}

footer a:hover{
	color: var(--grey);
}

/* FOOTER MOBILE */
@media only screen and (max-width: 768px){
footer {
	padding: 40px 10px;
	padding-top: 200px;
}
	footer p, footer a {
	font-size: 12px;
}
}	

/* SOVRAPPOSIZIONE SEZIONI 
.scroll-container {
  height: 50vh;
  overflow-y: scroll;
}

.page-section {
  height: 100vh;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  background: #f4f4f4;
  border-bottom: 1px solid #ddd;
}*/





/****LOGO HOVERABLE****/
.logo-letter {
  font-size: 35px;
  color: var(--text-color);
  display: inline-block;
  font-weight: 600;
  padding: 0 5px;
}

.hoverable {
  display: inline-block;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden; /* important so letters don't peek out */
}

.logo-reveal {
  display: inline-block;
  width: 0;         
  opacity: 0;       
  white-space: nowrap;
  overflow: hidden;     /* keep letters hidden */
  vertical-align: bottom; /* stay aligned with main letter */
}
.logo-letter,
.hoverable {
  display: inline-block;
  vertical-align: bottom; /* align everything on the same baseline */
  line-height: 1;         /* consistent vertical spacing */
}

@media only screen and (max-width: 768px){
	#cursor{
		display: none;
	}

	#cursor-shadow{
		display: none;
	}
	
	body, html{
		cursor: default;
	}
}

/* --- STILI GLOBALI (SE NON LI HAI GIÀ) --- */
/* Stili per il tema scuro (default per l'Offcanvas se non hai uno stile base) */
#main-nav {
    /* Assicurati che il tema scuro di default sia scuro */
    background-color: #000; /* Esempio: sfondo scuro */
    color: #fff; /* Testo chiaro */
}

/* --- STILI TEMA CHIARO PER IL MENU MOBILE --- */

/* 1. Sfondo e Testo Generale */
#main-nav.light-theme {
    background-color: #fff; /* Sfondo del menu: BIANCO */
    color: #000; /* Testo generale: NERO */
}

/* 2. Link e Voci di Menu */
/* Applica il colore nero ai link principali del menu mobile */
#main-nav.light-theme .m-main-menu a,
#main-nav.light-theme .navbar-nav a {
    color: #000 !important; 
}

/* 3. Logo e Sottovoci */
/* Assicurati che i caratteri del logo e le altre scritte siano nere nel tema chiaro */
#main-nav.light-theme .logo-theme,
#main-nav.light-theme .logo-letter {
    color: #000;
}

/* 4. Bottone di Chiusura Offcanvas (molto importante) */
/* Rende l'icona di chiusura (X) visibile su sfondo bianco */
#main-nav.light-theme .btn-close {
    /* La proprietà filter: invert(1) inverte i colori del SVG/elemento */
    filter: invert(1); 
}

/* 5. Bottone Dark/Light (il tuo #theme-switcher-mobile) */
/* Assicurati che il testo del bottone sia nero */
#main-nav.light-theme #theme-switcher-mobile {
    color: #000; 
    border-color: #000; /* Se ha un bordo */
}

#main-nav.light-theme .menu-item{
    border-bottom: 1px solid #00000050;
}

/* --- Stili per DARK THEME (Sfondo Scuro, Testo Chiaro) --- */

/* Applica il colore BIANCO a tutti gli elementi logo quando il body è dark */
body.dark-theme .logo-letter {
    color: #FFFFFF !important; /* Forza il colore bianco */
}

/* --- Stili per LIGHT THEME (Sfondo Chiaro, Testo Scuro) --- */

/* Applica il colore NERO a tutti gli elementi logo quando il body è light */
body.light-theme .logo-letter {
    color: #000000 !important; /* Forza il colore nero */
}

/* --- Override per il Logo nel Mobile Menu Light Theme --- */
/* Questa regola è ora ridondante grazie all'!important sopra, ma la manteniamo */
#main-nav.light-theme .logo-letter {
    color: #000000 !important;
}

/* --- Menu Mobile Light Theme: Assicurati che il bordo sia nero --- */
#main-nav.light-theme .menu-item{
    border-bottom: 1px solid #00000050; /* Il colore è ora basato sul nero, non sul bianco */
}

#main-nav.light-theme .logo-theme,
#main-nav.light-theme .logo-letter {
    color: #000;
}

/* Applica il colore BIANCO a tutti gli elementi logo quando il body è dark */
body.dark-theme .logo-letter {
    color: #FFFFFF !important; /* Forza il colore bianco */
}

/* Applica il colore NERO a tutti gli elementi logo quando il body è light */
body.light-theme .logo-letter {
    color: #000000 !important; /* Forza il colore nero */
}