:root{

  /* 
    Colori tema 
  */
  --arancione   : #FF7514;
  --nero        : #282828;
  --text-main   : #332D29;
  --text-muted  : #CFCFCF;
  --border-soft : #2A2A2A;

  --bg-body     : #FAF8F4;
  --bg-menu     : #EDE6DE;
  --bg-footer   : #EDE6DE;

  --font-testo  : "Poppins", sans-serif;
  --font-script : "Indie Flower", cursive;

  --font-size-std : clamp(12px, 9.6px + 0.75vw, 24px); /* 320 → 1920 */
  --font-size-sml : clamp(11px, 8.8px + 0.6875vw, 22px); /* 320 → 1920 */

    --space-2xs: clamp(4px, 0.4vw, 8px);
  --space-xs:  clamp(8px, 0.8vw, 12px);
  --space-s:   clamp(12px, 1.2vw, 20px);
  --space-m:   clamp(16px, 1.8vw, 28px);
  --space-l:   clamp(24px, 2.6vw, 44px);
  --space-xl:  clamp(32px, 3.6vw, 64px);
  --space-2xl: clamp(48px, 5vw, 96px);
}
.medium {font-weight: 600;}
.bold {font-weight: 700;}
.extrabold {font-weight: 800;}

.contenitore{
  width: 98%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
}

.mobile  {display: inline;}
.desktop {display: none;}
.no-mobile{display: none;}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  z-index: 5000;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.orange{
  color: var(--arancione);
}

.icon{
  width: var(--font-size-std);
  height: var(--font-size-std);
  fill: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

.section-separator{
  width: 99%;
  max-width: 1650px;
  margin: 0 auto;
}
.section-separator-line{
  display: block;
  height: 1px;
  width: 100%;
  background: color-mix(in srgb, var(--border-soft) 20%, transparent);
  opacity: 0.65;
}
/*
  Reset
*/
*, *::before, *::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/*
  Typo base
*/
html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--font-testo);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 300;
  color: var(--text-main);
  background-color: var(--bg-body);
}
body{
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6{
  padding: 0;
  margin: 0;
  line-height: 1.4;
}
p{
  font-size: var(--font-size-std );
  margin-bottom: 0.7em;
  line-height: 1.3;
}
p:last-of-type{
  margin-bottom: 0;
}
li{
  font-size: var(--font-size-std );
  margin-bottom: 0.7em;
  line-height: 1.3;
}
li:last-of-type{
  margin-bottom: 0;
}
a{
  color: inherit;
  text-decoration: none;
}
a:focus{
  outline: none;
}
a:focus-visible{
  outline: 2px solid var(--arancione);
  outline-offset: 3px;
  border-radius: 6px;
}

/*
  Classi generiche
*/
html.menu-open,
body.menu-open {
  overflow: hidden;
}

.contenitore{
  width: 99%;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: clamp(32px, 25.6px + 2vw, 64px); /* 320 → 1920 */
  padding-bottom: clamp(32px, 25.6px + 2vw, 64px); /* 320 → 1920 */

}
.contenitore header{
  padding-bottom: clamp(16px, 12.8px + 1vw, 32px); /* 320 → 1920 */  
}

.contenitore header h2{
  font-size: clamp(18px, 8.8px + 2.875vw, 64px); /* 320 → 1920 */  
}
.contenitore header .sub-header{
  font-family: var(--font-script);
    font-size: clamp(16px, 12.8px + 1vw, 32px); /* 320 → 1920 */ 
    color: var(--arancione); 
}


.accent{
  color: var(--arancione);
}



/*
    Menù superiore
*/
/* Bottone menu fisso in alto a destra */
#btnMenuTop{
  position: fixed;
  padding: 0.4rem 0.6rem;
  background-color: var(--bg-body);
  z-index: 4400;

}

#btnCloseMenuTop {
  position: absolute;
  padding: 0.7rem 0.9rem;
  font-size: clamp(12px, 10px + 0.625vw, 22px);
  background-color: var(--bg-menu);
  z-index: 5000;
}

#btnMenuTop,
#btnCloseMenuTop {
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-main);
  transition: border-color 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

#btnMenuTop:hover,
#btnMenuTop:focus-visible,
#btnCloseMenuTop:hover,
#btnCloseMenuTop:focus-visible {
  border-color: var(--arancione);
  color: var(--arancione);
}

/* Contenitore menù */
.cntMenuTop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4500;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.3s ease;
  overflow-y: auto;
  background-color: var(--bg-menu);
}

.cntMenuTop.is-open{
  transform: translateY(0);
  opacity: 1;
}

.topMenu {
  position: relative;
  background-color: var(--bg-menu);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topMenu .logo{ padding-left:0.5rem; }

.topMenu .logo .logo-text{
  font-size: clamp(48px, 38.4px + 3vw, 96px);
  font-weight: 800;
  letter-spacing: -4px;
  display: inline-block;
}

.topMenu .menu{ margin: 1rem 0.6rem; }

.topMenu .menu .item {
  position: relative;
  padding: 0.5rem 0;
  margin-left: 0.8rem;
}

.topMenu .menu .item span{ display: block; }

.topMenu .menu .item .desc{
  color: var(--arancione);
  font-family: var(--font-script);
  display: none;
}

.topMenu .menu .item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: var(--arancione);
  transition: width 0.25s ease;
}

.topMenu .menu .item span:first-child {
  display: inline-block;
  transition: transform 0.25s ease;
}

.topMenu .menu .item:hover span:first-child,
.topMenu .menu .item:focus-within span:first-child {
  transform: translateX(8px);
}

.topMenu .menu .item:hover::after,
.topMenu .menu .item:focus-within::after {
  width: 100%;
}

.topMenu .social{
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.topMenu .social .socialItems{
  list-style: none;
  padding: 0;
  margin: 0;
}

.topMenu .social .socialItems .item{
  display: inline-block;
  margin: 0.7rem;
}

.topMenu .social .socialItems .item a:hover,
.topMenu .social .socialItems .item a:focus-visible{
  color: var(--arancione);
}

/* Media query per desktop */
@media only screen and (min-width: 768px){
  .mobile  { display: none; }
  .desktop { display: inline; }

  .topMenu{
    display: flex;
    flex-direction: row;
    height: 100%;
  }

  .topMenu .logo{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 25%;
  }

  .topMenu .logo .logo-text{ letter-spacing: -6px; }

  .topMenu .menu{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 55%;
  }

  .topMenu .menu .item{ margin-bottom: 0.6rem; }

  .topMenu .menu .item a{ font-size: var(--font-size-std); }

  .topMenu .social{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 20%;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
  }

  .topMenu .social .socialItems .item{
    display: block;
    margin: 0.6rem 0;
  }

  .topMenu .menu .item .desc{
    display: block;
    font-weight: 200;
    font-size: var(--font-size-std);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
  }

  .topMenu .menu .item:hover .desc,
  .topMenu .menu .item:focus-within .desc {
    opacity: 1;
    transform: translateY(0);
  }

  .topMenu .social .socialItems .item a {
    font-size:18px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    line-height: 1;
    transition: color 0.25s ease, transform 0.25s ease;
  }

  .topMenu .social .socialItems .item a .icon {
    height: 18px;
    width: 18px;
    display: inline-block;
    transition: transform 0.25s ease;
  }

  .topMenu .social .socialItems .item:hover a,
  .topMenu .social .socialItems .item:focus-within a {
    color: var(--arancione);
    transform: translateX(4px);
  }

  .topMenu .social .socialItems .item:hover a .icon,
  .topMenu .social .socialItems .item:focus-within a .icon {
    transform: rotate(45deg);
  }
}

@media screen and (min-width: 1024px) {
    .topMenu .social .socialItems .item a {
    font-size:24px;
  }

  .topMenu .social .socialItems .item a .icon {
    height: 22px;
    width: 22px;
  }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .cntMenuTop { transition: none; }
  .topMenu .menu .item,
  .topMenu .menu .item .desc {
    transition: none;
    transform: none;
  }
}



/*
  FOOTER
==================================================== */

#site-footer{
  background-color: var(--bg-footer);
  color: var(--text-main);
}

/* base layout */
#site-footer .footer-body{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

#site-footer .footer-body .footer-head{
  flex-grow: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* slogan (dark) */
.footer-slogan{ color: var(--text-main);
padding-left: 1.5em; }

.footer-slogan h2{
  font-family: var(--font-titolo);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.25em 0;
  color: var(--text-main);
  font-size: var(--space-xl);
}

.footer-slogan h3{
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--space-l);
  line-height: 1.3;
  margin: 0;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}



/* menu footer links (dark + a11y) */
#site-footer .footer-body .footer-head .footer-col-menu .bm-container .item{
  font-size: 16px;
  padding: 0.5em;
}

.footer-col-menu .item a{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--text-main);
  font-size: calc(var(--font-size-std) *.9);

  transition: color .3s ease;
}

.footer-col-menu .item a svg{
  width: 1em;
  height: 1em;
  fill: currentColor;
  transition: transform .3s ease-out;
  display: block;
}

.footer-col-menu .item a span{
  position: relative;
  display: inline-block;
  line-height: 1;
}

.footer-col-menu .item a span::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--arancione);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease-in-out;
}

.footer-col-menu .item a:hover{
  color: var(--arancione);
}
.footer-col-menu .item a:hover svg{
  transform: rotate(45deg);
}
.footer-col-menu .item a:hover span::after{
  transform: scaleX(1);
}

.footer-col-menu .item a:focus{ outline: none; }
.footer-col-menu .item a:focus-visible{
  color: var(--arancione);
  outline: 2px solid var(--arancione);
  outline-offset: 3px;
  border-radius: 6px;
}
.footer-col-menu .item a:focus-visible svg{ transform: rotate(45deg); }
.footer-col-menu .item a:focus-visible span::after{ transform: scaleX(1); }

/* footer foot */
#site-footer .footer-foot{
  width:99%;
  margin: 0 auto;
}

#site-footer .footer-foot .company-social h5{
  font-size: var(--M);
}

#site-footer .footer-foot .company-social address{
  font-size: 13px;
  font-style: normal;
  padding-left: 8px;
  margin-left: 8px;
  border-left: 2px solid var(--border-soft);
}

#site-footer .footer-foot .company-social{
  width: 99%;
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
}

#site-footer .footer-foot .company-social .company{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
}

#site-footer .footer-foot .company-social .social {
  padding: 2rem 0;
}

#site-footer .footer-foot .company-social .social .social-items{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

#site-footer .footer-foot .company-social .social .social-items .item a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5em;
  height: 2.5em;

  border: 2px solid var(--border-soft);
  border-radius: 50%;

  transition: all 0.3s ease;
  color: var(--text-main);
}

#site-footer .footer-foot .company-social .social .social-items .item a svg{
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#site-footer .footer-foot .company-social .social .social-items .item a:hover,
#site-footer .footer-foot .company-social .social .social-items .item a:focus-visible{
  color: var(--arancione);
  border-color: var(--arancione);
}

#site-footer .footer-foot .company-social .social .social-items .item a:hover svg,
#site-footer .footer-foot .company-social .social .social-items .item a:focus-visible svg{
  transform: rotate(360deg);
}

/* copy + up */
#site-footer .footer-foot .copy-and-up{
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
}

#site-footer .footer-foot .copy-and-up .copyright p{
  font-size: 0.9em;
}
#site-footer .footer-foot .copy-and-up .up{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-content: flex-end;
}

.up a{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.3s ease;
  padding: 4px;
}

.up a .iconTornaSu{ transition: transform 0.3s ease; }

.up a:hover,
.up a:focus-visible{
  color: var(--arancione);
}
.up a:hover .iconTornaSu,
.up a:focus-visible .iconTornaSu{
  transform: translateY(-3px);
}

/* flag (immutabile) */
#site-footer .footer-flag{
  display: flex;
  flex-direction: row;
  height: 3px;
  width: 100svw;
  margin-top: 2px; /* distacco “premium” */
}

#site-footer .footer-flag .flag-segment{
  flex: 1;
  height: 100%;
}
#site-footer .footer-flag .flag-green { background-color: #008C45; }
#site-footer .footer-flag .flag-white { background-color: #F4F5F0; }
#site-footer .footer-flag .flag-red   { background-color: #CD212A; }

/* layout desktop footer head */
@media screen and (min-width: 764px) {
  #site-footer .footer-body .footer-head .footer-menu{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(1rem, 2vw, 2rem);
  }

  #site-footer .footer-body .footer-head .footer-menu .footer-slogan{
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #site-footer .footer-body .footer-head .footer-menu .footer-col-menu{
    flex: 1 1 auto;
    min-width: 0;
  }

  #site-footer .footer-body .footer-head .footer-menu .bm-container{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: clamp(0.75rem, 2vw, 2rem);
    width: 100%;
  }

  #site-footer .footer-body .footer-head .footer-menu .bm-container .col{
    flex: 1 1 0;
    min-width: 0;
  }

  #site-footer .footer-body .footer-head .footer-menu .bm-container .no-mobile{
    display: none;
  }

  #site-footer .footer-foot .company-social{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  #site-footer .footer-foot .copy-and-up{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media screen and (min-width: 1024px) {
  #site-footer .footer-body .footer-head .footer-menu .bm-container .no-mobile{
    display: block;
  }
}


/* CTA */
#ops-cta{
  position: relative;
  overflow: clip;
  background: #F3EEE7; /* ponte tra #FAF8F4 e #EDE6DE */
}

/* testi sopra */
#ops-cta .contenitore{
  position: relative;
  z-index: 1;
}

/* bg svg */
#ops-cta .bg-svg{
  position: absolute;
  top: clamp(-120px, -10vw, -60px);
  left: clamp(-140px, -12vw, -80px);
  z-index: 0;
  pointer-events: none;
  opacity: .22; /* base */
  filter: grayscale(1);
}

/* quasi doppia rispetto alle altre */
#ops-cta .bg-svg svg{
  width: clamp(520px, 52vw, 980px);
  height: auto;
  transform: rotate(7deg);
  transform-origin: 50% 50%;
  color: rgba(0,0,0,.18);
}

/* “sfumato” più bello: gradient overlay leggero */
#ops-cta::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(0,0,0,.06),
    transparent 55%
  );
}

/* CTA list (se non l’hai già messa) */
#ops-cta .ops-cta-contatti{
  list-style:none;
  margin: clamp(18px, 14px + 1vw, 28px) 0 0;
  padding:0;
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 8px + .5vw, 16px);
}
@media (min-width: 700px){
  #ops-cta .ops-cta-contatti{ grid-template-columns: 1fr 1fr; }
}

#ops-cta .ops-cta-link{
  display:flex;
  align-items:center;
  gap:.8rem;
  padding: clamp(12px, 10px + .6vw, 16px) 0;
  border-bottom: 1px solid rgba(0,0,0,.12);
  text-decoration:none;
  transition: color .25s ease, transform .25s ease;
}
#ops-cta .ops-cta-icona svg{
  width: 1.25em;
  height: 1.25em;
  flex-shrink:0;
  color: var(--arancione);
}
#ops-cta .ops-cta-label{ display:block; font-weight:800; line-height:1.1; }
#ops-cta .ops-cta-value{ display:block; opacity:.8; font-size:.95em; }

#ops-cta .ops-cta-link:hover,
#ops-cta .ops-cta-link:focus-visible{
  color: var(--arancione);
  transform: translateY(-1px);
}
#ops-cta .ops-cta-link:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 10px;
}
