/*
Theme Name: Shop Doses
Template: hello-elementor
Author: Adriano Trigona
Description: Tema per lo Shop del Doses
Version: 1.0
*/
/* Variabili colori personalizzati */
:root {
  --color-primario: #00614C;
  --color-secondario: #FF7301;
  --color-testo: #000000;
  --color-bianco: #ffffff;
  --color-light-primario: #66A094;
}

::selection {
  background-color: var(--color-primario); 
  color: white;
}

::-moz-selection {
  background-color: var(--color-primario); 
  color: white;
}

/* CURSORE CUSTOM */
.cursor {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    background-color: var(--color-primario);
    height: 25px;
    width: 25px;
    left: 0; 
    top: 0; 
	transition: transform 0.4s cubic-bezier(0.17, 0.67, 0.44, 1.3), 
                background-color 0.3s ease, border-color 0.3s ease;
    transform-origin: center center;
}

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

body {
  font-family: 'Figtree', sans-serif;
  background-color: #fff;
}

h1 {
  font-size: 70px;
  font-weight: 700;
  line-height: 77px;
}

h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
}

h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 33px;
}

h4 {
  font-size: 26px;
  line-height: 24px;
  font-weight: 500;
}

h5 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
}

p {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

a, span {
	font-family: 'Figtree', sans-serif;
}

li {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
}

 @media (max-width: 1024px) {
	  h1 {
		 font-size: 45px !important;
		  line-height: 50px !important;
	 }
	 
	 h2 {
		 font-size: 28px !important;
		   line-height: 43px !important;
	 }
	 
	 h3 {
		 font-size: 24px !important;
		   line-height: 30px !important;
	 }
	 
	 h4 {
		 font-size: 22px !important;
		   line-height: 24px !important;
	 }
	 
	 h5 {
		 font-size: 20px !important;
		   line-height: 24px !important;
	 }
}

/* Varianti */
.italic {
  font-style: italic;
}

.light {
  font-weight: 300;
}

.bold {
  font-weight: 700;
}

.semibold {
  font-weight: 600;
}

.semibold.italic {
  font-weight: 600;
  font-style: italic;
}

.elementor-field-group .elementor-field-textual:focus {
	box-shadow: none !important;
}

/* Colore primario */
.primary {
  color: var(--color-primario);
}

::-webkit-scrollbar {
	width:18px;
}
::-webkit-scrollbar-track {
	background-color: transparent;
}
::-webkit-scrollbar-thumb {
	background-color: var(--color-primario);
	background-clip: content-box;
	border: 5px solid transparent;
	border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
	background-color: var(--color-secondario);
}

/* HEADER */
.header, .header-2 {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  will-change: transform, opacity, background-color;
  background: transparent;
  opacity: 0;
  visibility: hidden;
}


/* --- Fix per evitare il colore di hover predefinito --- */
.button:hover,
.button:focus,
.button[type="button"]:hover,
.button[type="button"]:focus,
.button[type="submit"]:hover,
.button[type="submit"]:focus {
  background: none !important;
  background-color: transparent !important;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* ================================
     BUTTON LIGHT
     ================================ */
  .button {
    position: relative !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    border-radius: 40px !important;
    
    /* Proprietà Glassomorphism dalla .glass-card */
    background: rgba(255, 255, 255, 0.25) !important; 
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 
        0 2px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    
    cursor: pointer !important;
    font-size: 18px !important;
    padding: 18px 48px !important;
    letter-spacing: 1.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    transition: transform 0.25s ease, backdrop-filter 0.4s ease, box-shadow 0.3s ease !important; /* Aggiunto box-shadow alla transizione */
    line-height: 1.2 !important;
}

  /* Layer di riempimento */
  .button__fill {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transform: translateY(100%);
    border-radius: inherit;
    z-index: 0;
  }

  /* Contenitore testo */
  .button__inner {
    position: relative;
    z-index: 2;
  }

  /* Testo */
  .button__text {
    position: relative;
    display: block;
    overflow: hidden;
    height: 1.2em;
  }

  .button__text span {
    display: block;
    transform: translateY(0%);
    transition: none;
    color: #ffffff;
	font-weight: 700;
  }

  .button__text span:nth-child(2) {
    color: #00614C;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }

  /* Mobile fallback */
 @media (max-width: 1024px) {
    .button {
      background: #ffffff;
      color: #00614C !important;
      backdrop-filter: none;
	  padding: 10px 25px !important;
    }

    .button__fill {
      display: none;
    }

    .button__text span:nth-child(1) {
      color: #00614C !important;
    }
  }

/* BUTTON CUSTOM */
.button--custom { 
        display: inline-block; 
        position: relative;
        text-decoration: none;
		cursor: pointer;
		color: #fff !important;
        font-weight: 500 !important;
    }

.button--custom .text-wrap {
  display: block; 
  height: 1.2em;
  line-height: 1.2em;
  overflow: hidden; 
}

.button--custom .text-box {
  display: block;
}

.button--custom .text-inner {
  display: block;
  padding-bottom: 2px;
}

/* === STILI VISIVI E HOVER === */
@media (min-width: 1024px) {
    .button--custom { 
        padding: 0 5px 2px 5px;
        font-weight: 500 !important;
        font-size: 18px;
		color: #fff !important;
    }

    .button--custom::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #fff;
        bottom: -5px; 
        left: 0;
        transform: scaleX(0);
        transform-origin: bottom center;
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    }

    .button--custom:hover::after {
        transform: scaleX(1);
    }
}

/* BUTTON NEWSLETTER */
/* === STILI DI BASE E GLASSOMORPHISM === */
#newsletter, #contatti {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 40px;
	color: var(--color-primario) !important;
    
    /* Proprietà Glassomorphism */
    background: rgba(255, 255, 255, 0.25); /* Sfondo Bianco vetroso */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    
    cursor: pointer;
    font-size: 18px;
    padding: 18px 48px;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: transform 0.25s ease, backdrop-filter 0.4s ease, box-shadow 0.3s ease;
    line-height: 1.2;
    border: none; /* Rimuovi il bordo implicito del bottone */
}

/* Colore del testo quando il riempimento è attivo (DEVE corrispondere al colore primario) */
#newsletter .button__text span:nth-child(2),
#contatti .button__text span:nth-child(2) {
    color: #fff !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    font-weight: 700;
}

/* Colore del testo originale (bianco) */
#newsletter .button__text span:nth-child(1), 
#contatti .button__text span:nth-child(1) {
    color: var(--color-primario) !important;
    font-weight: 700;
}

/* === STRUTTURA ANIMAZIONE (Necessaria per GSAP) === */
#newsletter .button__fill, 
#contatti .button__fill {
    position: absolute;
    bottom: -1;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primario); /* Riempimento COLORE PRIMARIO */
    transform: translateY(100%);
    border-radius: inherit;
    z-index: 0;
}

#newsletter .button__inner,
#contatti .button__inner {
    position: relative;
    z-index: 2;
}

#newsletter .button__text, 
#contatti .button__text {
    position: relative;
    display: block;
    overflow: hidden;
    height: 1.2em;
}

#newsletter .button__text span, 
#contatti .button__text span {
    display: block;
    transform: translateY(0%);
    transition: none; /* Rimuoviamo le transizioni CSS per lasciare il controllo a GSAP */
}

/* Mobile fallback: Se il bottone rimane glassomorfo su mobile */
@media (max-width: 1024px) {
    #newsletter, #contatti {
        /* Disattiva l'effetto glassomorfo e usa il riempimento solido mobile */
        background: var(--color-primario);
        color: #FFFFFF !important;
        backdrop-filter: none;
		padding: 10px 25px !important;
    }
    #newsletter .button__text span:nth-child(1), 
	#contatti .button__text span:nth-child(1) {
        color: #FFFFFF !important; /* Testo visibile sempre bianco */
    }
    #newsletter .button__fill, 
	#contatti .button__fill {
        display: none; /* Rimuovi il fill su mobile */
    }
}