:root {
  --taupe: #8B7D6B;
  --taupe-soft: #9B8D7E;
  --taupe-dark: #5B5047;
  --ivory: #FAF9F7;
  --beige: #F3EEE9;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(91, 80, 71, .10);
  --shadow-soft: 0 4px 14px rgba(91, 80, 71, .08);
  --focus: #0a7cff;
  --maxw: 1120px;
  --espresso: #2a241f;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  color: var(--taupe-dark);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

}

html,
body {
  overflow-x: hidden;
}

h1,
h2,
h3,
.h2,
.h3,
.h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: #2a241f;
  line-height: 1.25;
  margin: 0 0 .4em
}

.h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.25rem)
}

.spazio-title {
  padding-bottom: 2.5rem;
}

.h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.5rem)
}

.h4 {
  font-size: clamp(1.125rem, 2.2vw, 1.25rem)
}

.lead {
  font-size: 1.05rem
}

.center {
  text-align: center
}

.muted {
  color: #6f655c
}

strong {
  color: #2a241f;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem
}


.grid-2 {
  display: grid;
  gap: 1.25rem
}

@media (min-width: 768px),
(orientation: landscape) {
  .grid-2 {
    grid-template-columns: 1fr 1fr
  }
}

.section {
  padding: 4.5rem 0
}

.section--ivory {
  background: var(--ivory)
}

.section--beige {
  background: var(--beige);


}

.section--taupe {
  background: var(--taupe);
  color: #fff
}

.section--taupe .h2,
.section--taupe .hero__title {
  color: #faf9f7;
}




/* === NAVBAR BASE === */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 900;
  overflow: hidden;
  /* il logo non può mai sforare */
}

.nav__inner {
  max-width: 100%;
  margin: 0 0.5rem 0 0;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: inherit;
}

/* === LOGO === */
.logo {
  height: 50px;
  max-height: 100%;
  /* non può mai superare l'altezza del contenitore */
  width: auto;
  display: block;
}

/* === HAMBURGER === */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 34px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3001;
  padding: 0;
  transition: transform 0.3s ease;
}

.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: all 0.35s ease;
  transform-origin: center;
}



/* ANIMAZIONE → X */
.nav__burger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav__burger.active span:nth-child(2) {
  opacity: 0;
}

.nav__burger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Effetto hover */
.nav__burger:hover span {
  background: #3a2e26;
}

/* === FULLSCREEN OVERLAY === */

.mobile-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-size: 200% 200%;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 40px rgba(91, 80, 71, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
  z-index: 20;
}


.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

/* === FONT MENU MOBILE === */
.overlay-menu a {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  /* leggero, elegante */
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--taupe-dark);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;

}

.overlay-menu a:hover {
  color: var(--taupe);
  transform: translateY(-2px);
}


/* === CONTENUTO INTERNO === */
.mobile-overlay__content {
  text-align: center;
  z-index: 1;
  margin-top: 10vh;
}

/* === LOGO CENTRALE === */
.overlay-logo {
  width: clamp(280px, 50vw, 420px);
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
  opacity: 0;
  animation: fadeInLogo 1s ease forwards 0.2s;
}

@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}



/* === MENU === */
.overlay-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: -1rem;
}

.overlay-menu a {
  font-size: 1.6rem;
  color: #000;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInLinks 0.6s ease forwards;
}

.overlay-menu li:nth-child(1) a {
  animation-delay: 0.4s;
}

.overlay-menu li:nth-child(2) a {
  animation-delay: 0.55s;
}

.overlay-menu li:nth-child(3) a {
  animation-delay: 0.7s;
}

.overlay-menu li:nth-child(4) a {
  animation-delay: 0.85s;
}

@keyframes fadeInLinks {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.overlay-menu a:hover {
  color: var(--taupe);
  text-shadow: 0 0 10px rgba(139, 125, 107, 0.3);
}

#mobile-overlay {
  background:
    url("images/dea-bendata-avvocato-avvocata-giulia-mezzetti-bologna.webp") 100% center/cover no-repeat,
    linear-gradient(180deg,
      rgba(244, 236, 229, 0.8) 0%,
      rgba(224, 212, 202, 0.85) 40%,
      rgba(198, 183, 171, 0.9) 100%);
  background-blend-mode: multiply;
  /* o lighten a seconda dell’effetto */
}

#mobile-overlay {
  background-position: left -80px bottom;
  /* 🔹 sposta l'immagine verso il basso */
  background-size: 98%;
  /* 🔹 riduce la dimensione dell'immagine */
}



/* === RESPONSIVE === */
@media (min-width: 768px),
(orientation: landscape) {
  .nav__menu {
    display: block;
  }

  .nav__burger {
    display: none;
  }

  .mobile-overlay {
    display: none !important;
  }
}



@media (max-width: 767px) and (orientation: portrait) {
  .nav__menu {
    display: none !important;
  }
}

/* Quando il menu mobile è aperto */
.nav.active .nav__burger {
  position: fixed;
  /* staccata dalla nav */
  top: 1.5rem;
  right: 1.5rem;
  z-index: 5000;
  /* sopra tutto, anche sopra overlay */
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.4s ease;
}

/* Evita che sparisca col fade della nav */
.nav.active {
  opacity: 1 !important;
  pointer-events: none;
  /* non blocca la X */
}


@media (max-width: 767px) and (orientation: portrait) {
  .nav {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  /* sposta hamburger sopra tutto */
  .nav__burger {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 5000;
  }

  /* sposta logo sopra tutto */
  .nav .logo {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 5000;
    height: clamp(20px, 12vw, 50px);
    margin: -25px -20px -20px -20px;
  }
}

/* === MOBILE LANDSCAPE: logo ridotto per stare nella navbar bassa === */
@media (orientation: landscape) and (max-height: 500px) {
  .nav__inner .logo {
    height: 32px !important;
  }
}





/* === DESKTOP NAV === */
@media (min-width: 768px),
(orientation: landscape) {
  .nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 2rem;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    position: static;
    transform: none;
  }

  .nav__menu {
    grid-column: 3;
    justify-self: flex-end;
    display: flex;
    align-items: center;
    margin-left: 0;
  }

  .logo {
    height: clamp(55px, 6vw, 70px);
    order: 0;
  }

  .nav__list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav__list a {
    text-decoration: none;
    color: var(--taupe-dark);
    color: #2a241f;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .nav__list a:hover {
    color: var(--taupe);
  }

  /* l’hamburger sparisce su desktop */
  .nav__burger {
    display: none;
  }
}


/* === TABLET (768px – 1024px): logo proporzionato, link su una riga === */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
  }

  .logo {
    height: 4055pxpx;
    /* fisso e proporzionato su tablet */
    width: auto;
    display: block;
  }

  .nav__menu {
    grid-column: 3;
    justify-self: flex-end;
    display: flex;
    align-items: center;
  }

  .nav__list {
    gap: 0.8rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav__list a {
    font-size: 0.88rem;
    white-space: nowrap;
  }
}



.nav.active .logo {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  /* leggera salita */
}

/* Logo che scompare con fade + slide */
.nav .logo {
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}


/* stato iniziale: logo nascosto */
.nav .logo {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease !important;
}

/* quando la nav ha la classe .scrolled → logo visibile */
.nav.scrolled .logo {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =======================================================
   🔧 FIX DEFINITIVO: rimuove lo sfondo cerchiato della X
======================================================= */

/* Rimuove sfondo, bordo e cerchio residuo da hamburger/X */
.nav__burger,
.nav__burger.active {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Elimina eventuale pseudo-elemento circolare */
.nav__burger::before,
.nav__burger::after,
.nav__burger span::before,
.nav__burger span::after {
  content: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}



/* SALTA IL CONTENUTO */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  z-index: 9999;
  transition: top 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 10px;
  /* compare visibile */
}




/* HERO */
.hero {
  border-bottom: 3px solid rgba(0, 0, 0, .06);
}

.hero .container {
  display: grid;
  place-items: center;
  text-align: center;
}

/* LOGO IMMAGINE (al posto del cerchio GM) */
.hero__logo {
  display: grid;
  place-items: center;
  width: clamp(140px, 28vw, 260px);
  height: auto;
  margin-bottom: 0.75rem;
  animation: fadeInHeroLogo 1.2s ease-out both;

}

.hero__logo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  background: #f7f2eb;
  padding: 1.2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.1));
}

/* ANIMAZIONE DOLCE */
@keyframes fadeInHeroLogo {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* TESTI */
.hero__title {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.3;
  color: #fff;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  max-width: 650px;
}

.hero__subtitle {
  letter-spacing: .35em;
  margin: .25rem 0 .75rem;
  opacity: .9;
}

/* =======================================================
   🎨 STILE UNIFICATO DEI PULSANTI
   Elegante, sobrio e coerente con la palette autunnale
======================================================= */

/* --- Base tipografica comune --- */
.btn,
button,
a.btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 2vw, 15px);
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* --- Base visiva di tutti i pulsanti --- */
.btn,
button,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 1.5px solid var(--taupe-soft);
  color: var(--taupe-dark);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  box-shadow: 0 4px 12px rgba(91, 80, 71, 0.12);
}

/* --- Hover globale --- */
.btn:hover,
button:hover,
a.btn:hover {
  background: rgba(255, 255, 255, 0.35);
  color: var(--taupe-dark);
  box-shadow: 0 6px 16px rgba(91, 80, 71, 0.2);
  transform: translateY(-2px);
}

/* --- Focus accessibile ma elegante --- */
.btn:focus,
button:focus,
a.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(91, 80, 71, 0.3);
}

/* --- Focus globale (tastiera) --- */
*:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Pulsante conclusivo - spaziatura bilanciata */
.section .btn,
.section a.btn {
  display: inline-block;
  margin-top: 2.2rem;
  /* mobile: aria sopra */
  margin-bottom: 2rem;
  /* mobile: aria sotto */
  box-shadow: 0 4px 12px rgba(91, 80, 71, 0.1);
  transition: all 0.3s ease;
}

/* Hover morbido e coerente */
.section .btn:hover {
  box-shadow: 0 6px 18px rgba(91, 80, 71, 0.18);
  transform: translateY(-2px);
}


/* RESPONSIVE */
/* --- Desktop --- */
@media (min-width: 768px),
(orientation: landscape) {

  .section .btn,
  .section a.btn {
    margin-top: 3.5rem;
    /* più aria sopra */
    margin-bottom: 3rem;
    /* spazio dal fondo */
    padding: 0.9rem 2.2rem;
    /* leggermente più largo */
  }
}

/* =======================================================
   🌿 Pulsante HERO (stile autunnale chiaro effetto vetro)
======================================================= */

.hero .btn--light {
  background: transparent;
  border: 1.3px solid rgba(245, 238, 230, 0.7);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #faf9f7;
  box-shadow: 0 3px 12px rgba(91, 80, 71, 0.08);
  transition: all 0.35s ease;

}

.hero .btn--light:hover {
  background: linear-gradient(135deg,
      rgba(250, 244, 238, 0.65) 0%,
      rgba(243, 236, 227, 0.4) 100%);
  border-color: rgba(245, 238, 230, 0.9);
  color: var(--taupe-dark);
  box-shadow: 0 6px 18px rgba(91, 80, 71, 0.18);
  transform: translateY(-2px) scale(1.04);
  color: #faf9f7;
}

.hero .btn--light:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(91, 80, 71, 0.25);
  border-color: rgba(91, 80, 71, 0.5);
}




/* HERO A SCHERMO INTERO */
.hero--full {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* IMMAGINE DI SFONDO TRASPARENTE */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero__bg img.hero__img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  /* <-- metà schermo */
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(20%) contrast(95%) brightness(110%);
}

/* CONTENUTO CENTRALE */
.hero--full .container {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* LOGO */
.hero__logo {
  display: grid;
  place-items: center;
  width: clamp(200px, 25vw, 350px);
  margin: 0 auto 1rem;
}

.hero__logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

/* FRASE */
.hero__title {
  font-size: clamp(24px, 4vw, 36px);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.4;

}

.hero__subtitle {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 2.4vw, 20px);
  color: #f9f9f9;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin: 0.5rem 0 1.5rem;
  color: #faf9f7;
  ;
}



/* CTA */
.hero--full .btn {
  background: rgba(255, 255, 255, 0.9);
  color: #2a241f;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.hero--full .btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn,
.hero .btn,
button,
a.btn {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  /* un po’ di aria per eleganza */
}

/* UPPERCASE FIEST */
/* Estende lo stile hero anche agli altri pulsanti chiari */
.section .btn--light {
  background: transparent;
  border: 1.3px solid rgba(245, 238, 230, 0.7);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--taupe-dark);
  box-shadow: 0 3px 12px rgba(91, 80, 71, 0.08);
  transition: all 0.35s ease;
}

.section .btn--light:hover {
  background: linear-gradient(135deg,
      rgba(250, 244, 238, 0.65) 0%,
      rgba(243, 236, 227, 0.4) 100%);
  border-color: rgba(245, 238, 230, 0.9);
  color: var(--taupe-dark);
  box-shadow: 0 6px 18px rgba(91, 80, 71, 0.18);
  transform: translateY(-2px) scale(1.04);
}

.section .btn--light:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(91, 80, 71, 0.25);
  border-color: rgba(91, 80, 71, 0.5);
}


.hr-fade {
  width: 100%;
  height: 1px;
  /* molto sottile */
  border: none;
  padding: 0;
  margin: 0;
  background: linear-gradient(90deg,
      rgba(245, 241, 235, 0) 0%,
      /* trasparente all'inizio */
      #F5F1EB 10%,
      /* beige chiaro */
      #A69588 40%,
      /* taupe chiaro */
      #8B7D6B 60%,
      /* taupe principale */
      #6B5D4F 80%,
      /* taupe scuro */
      rgba(255, 255, 255, 0) 100%
      /* bianco dissolvente */
    );
  background-size: 200% auto;
  animation: slideGradient 6s linear infinite;
  opacity: 0.8;
}

@keyframes slideGradient {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -200% center;
  }
}


/* --- SPAZIATURA HERO SOLO SU DESKTOP --- */
/* --- HERO FIXATA SOLO SU DESKTOP --- */
@media (min-width: 768px),
(orientation: landscape) {
  .hero--full {
    min-height: calc(100vh - 80px);
    /* togli la navbar fissa */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    /* nessun padding verticale */
  }

  .hero--full .container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: 0 2rem;
  }

  /* evita che il contenuto sbordi */
  .hero--full * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* immagine sfondo sempre centrata */
  .hero__bg img.hero__img {
    object-position: left center;
  }

  .hero--full {
    margin-bottom: 6rem;
  }
}

/* --- Immagine rotonda 3D nella sezione Chi sono --- */
.muted--image-round {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding: 3rem 0 1rem 0;

}

.muted--image-round img {
  width: clamp(300px, 40vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;

  /* Effetto 3D bombato */
  background: radial-gradient(circle at 30% 30%, #fffefc 0%, #f5f0eb 100%);
  border: 2px solid rgba(245, 238, 230, 0.9);
  box-shadow:
    inset 4px 4px 8px rgba(255, 255, 255, 0.8),
    /* luce interna */
    inset -4px -4px 10px rgba(0, 0, 0, 0.08),
    /* ombra interna */
    0 6px 20px rgba(91, 80, 71, 0.15),
    /* ombra esterna soft */
    0 12px 24px rgba(91, 80, 71, 0.1);
  /* profondità */

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.muted--image-round img:hover {
  transform: scale(1.04);
  box-shadow:
    inset 2px 2px 6px rgba(255, 255, 255, 0.6),
    inset -3px -3px 8px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(91, 80, 71, 0.25);
}

/* CHI SONO */

.bio-toggle,
.bio-close {
  margin-top: 0.8rem;
  background: rgba(255, 255, 255, 0.25);
  color: var(--taupe-dark);
  border: 1.5px solid var(--taupe-soft);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.45rem 1.2rem;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.bio-toggle:hover,
.bio-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}


.bio-close {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* effetto apertura morbido */
.bio-panel {
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  overflow: hidden;
}

.bio-panel.show {
  opacity: 1;
  transform: translateY(0);
  max-height: 1000px;
}


.bio-toggle {
  display: flex;
  margin-left: auto;
  /* lo spinge a destra */
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .bio-toggle {
    justify-content: center;
    margin-left: 0;
  }
}


.bio-toggle {
  display: flex;
  justify-content: flex-end;
  /* spinge a destra */
  margin-left: auto;
  width: 100%;
}

@media (max-width: 768px) {
  .bio-toggle {
    justify-content: center;
    /* su mobile torna centrato */
    margin-left: 0;
  }
}


.percorso {
  margin-bottom: 30px;
  margin-top: 30px;
}




.motto {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--taupe-dark);
  text-align: center;
  opacity: 0.9;
  margin-top: 1rem;
  letter-spacing: 0.01em;
}

.motto {
  text-shadow: 0 1px 3px rgba(91, 80, 71, 0.1);
}

/* Nascondi la citazione mobile su schermi grandi */
@media (min-width: 768px),
(orientation: landscape),
(orientation: landscape) {
  .card .motto {
    display: none !important;
  }
}

/* Nascondi la versione desktop su mobile */
@media (max-width: 767px) and (orientation: portrait) and (orientation: portrait) {
  .motto--desktop {
    display: none !important;
  }
}

/* Mostra e stila la versione desktop */
.motto--desktop {
  display: block;
  font-style: italic;
  color: var(--taupe-dark);
  opacity: 0.8;
  text-align: center;
  max-width: 80%;
  margin: 1rem auto 2rem;
  line-height: 1.5;
  animation: fadeIn 1s ease forwards;
}

.motto--desktop {
  margin: 4rem auto 1rem;
}

@media (min-width: 1024px) {
  .motto--desktop {
    display: block !important;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: var(--taupe-dark);
    opacity: 0.85;
    text-align: center;
    max-width: 80%;
    margin: 2rem auto 2.5rem;
    line-height: 1.6;
    padding: 1.2rem 1.8rem;

    /* 🌸 bordo elegante e coerente */
    border: 1px solid rgba(91, 80, 71, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    /* 🌿 leggero effetto ombra */
    box-shadow: 0 6px 18px rgba(91, 80, 71, 0.12);
    animation: fadeIn 1s ease forwards;
  }
}



/* Effetto reveal morbido */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nascondi la card con il motto su desktop e orizzontale */
@media (min-width: 768px),
(orientation: landscape),
(orientation: landscape) {
  .card--motto {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .bio-toggle {
    display: inline-block;
    /* si adatta al contenuto */
    width: auto;
    /* non prende tutta la card */
    align-self: flex-end;
    /* lo sposta a destra nella colonna */
    margin-top: 3rem;
    margin-right: 0;
    font-size: 0.9rem;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    border: 1.5px solid var(--taupe-soft);
    color: var(--taupe-dark);
    backdrop-filter: blur(8px) saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    box-shadow: 0 4px 12px rgba(91, 80, 71, 0.12);
    transition: all 0.3s ease;
    margin-left: 45%;

  }

  .bio-toggle:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 18px rgba(91, 80, 71, 0.18);
    transform: translateY(-2px);
  }
}

@media (min-width: 1024px) {

  /* Aggiunge respiro al testo nella card "Chi sono" solo su desktop */
  .section#chi .card.reveal {
    padding: 2.5rem 2.8rem;
    /* più spazio interno */


  }




  /* Leggero miglioramento della spaziatura dei paragrafi */
  .section#chi .card.reveal p {
    margin-bottom: 1.3rem;
    line-height: 1.7;
  }
}

.card-seo {
  margin-top: 2rem;
}

.seo-note {
  text-align: center;
}

.bio-section {
  background: linear-gradient(180deg,
      rgba(249, 245, 240, 0.6) 0%,
      rgba(241, 234, 227, 0.55) 40%,
      rgba(231, 222, 212, 0.5) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(91, 80, 71, 0.05);
  transition: background 0.6s ease;
}

.bio-section {
  animation: fadeInBg 0.8s ease forwards;
}

@keyframes fadeInBg {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}





/* Cards */
.card {
  background: #fff;
  border: 1px solid #ece7e2;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 18px
}

.card--soft {
  background: #fff;
  border: 1px solid #efeae6
}

/* 3-col grid */
.cards3 {
  display: grid;
  gap: 30px;
}

@media (min-width: 1024px) {
  .cards3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* TOGLI SE VUOI TUTTO BIANCO  */
.section#chi .card {
  background: rgba(248, 246, 242, 0.8);
  /* più caldo e trasparente */
  border: 1px solid rgba(91, 80, 71, 0.1);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(91, 80, 71, 0.08);
}

/* LINEA CHI SONO */
/*  .section#chi h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin: 2rem auto 1.5rem;
  background: linear-gradient(90deg, #d2c3b6, #8b7d6b);
  border-radius: 2px;
  opacity: 0.8;
} */

/* --- Sfondo decorativo bilancia nella sezione Chi sono --- */
.card--bilancia::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/bilancia-giustizia-avvocato-avvocata-giulia-mezzetti-bologna.webp") no-repeat center;
  background-size: 60%;
  /* dimensione regolabile */
  opacity: 0.08;
  /* trasparenza morbida */
  filter: grayscale(100%) contrast(90%) brightness(110%);
  z-index: 0;
  background-position: right -50px top 0px;

}

/* Mantiene il contenuto sopra l’immagine */
.card--bilancia * {
  position: relative;
  z-index: 1;
}

/* SERVIZI */
#servizi {
  position: relative;
  overflow: hidden;
  margin: 10px;
}

/* immagine decorativa in alto a destra */
#servizi::before {
  content: "";
  position: absolute;
  top: -150px;
  /* quanto “sale” sopra la sezione */
  right: -120px;
  /* spostala più dentro o più fuori */
  width: 720px;
  /* dimensione orizzontale */
  height: 720px;
  /* dimensione verticale */
  background: url("images/linee-sfondo-avvocato-avvocata-giulia-mezzetti-bologna.webp") no-repeat center;
  background-size: contain;
  /* mantiene proporzioni */
  opacity: 0.2;
  /* trasparenza elegante */
  z-index: 0;
  pointer-events: none;
  /* non interferisce coi clic */

}

/* contenuto sopra l’immagine */
#servizi .container {
  position: relative;
  z-index: 1;
}

/* Accordion (quadrato-morbido) */
.accordion {
  display: grid;
  gap: 14px
}

.accordion__item {
  padding: 0
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #eee
}

.accordion__toggle {
  border: 0;
  background: #f6f2ee;
  color: #2a241f;
  border-radius: 8px;
  padding: .45rem .7rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, transform .2s;
  font-family: 'Inter', system-ui, sans-serif;

}

.accordion__toggle:hover {
  background: #efeae6;
  transform: translateY(-1px)
}

.accordion__toggle:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px
}

.accordion__panel {
  padding: 14px 16px
}

[hidden] {
  display: none !important
}

.accordion__toggle {
  font-size: 0.85rem;
  /* più compatto */
  padding: 0.5rem 1rem;
  text-transform: none;
  /* niente uppercase */
  border-radius: 999px;
  background: rgba(245, 240, 235, 0.9);
  color: #2A241F;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.accordion__toggle:hover {
  background: #e6dbd0;
  transform: translateY(-1px);
}

.accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  /* impedisce che vadano a capo */
  gap: 1rem;
}

.accordion__toggle {
  white-space: nowrap;
  /* mantiene “Scopri di più” su una riga */
  flex-shrink: 0;
  /* evita che si stringa */
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

@media (max-width: 420px) {
  .accordion__header {
    gap: 0.6rem;
  }

  .accordion__toggle {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
  }
}


.accordion__toggle {
  background: linear-gradient(145deg, #f7f2eb, #f3ece3);
  color: var(--taupe-dark);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Al passaggio del mouse o quando è attivo */
.accordion__toggle:hover,
.accordion__toggle:focus,
.accordion__toggle[aria-expanded="true"] {
  background: linear-gradient(145deg, #efe7dd, #f3ece3);
  color: var(--taupe-darker);
  border-color: rgba(0, 0, 0, 0.15);
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Contact list */
.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;

}

.contact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted transparent
}

.contact a:hover {
  border-bottom-color: #b9afa6
}



.elegant-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--taupe-dark);
  font-size: 0.95rem;
}

.elegant-contact li {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.elegant-contact a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: 0 2px 6px rgba(91, 80, 71, 0.08);
  border: 1px solid rgba(91, 80, 71, 0.1);
  text-decoration: none;
  color: #2A241F;
  transition: all 0.25s ease;
}

/* Hover su tutto il blocco */
.elegant-contact a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(91, 80, 71, 0.15);
  background: var(--beige);
  color: var(--espresso);
}

/* Icone tonde */
.elegant-contact .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--beige);
  color: #2A241F;
  flex-shrink: 0;
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.6),
    inset -2px -2px 5px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

/* Icona che si illumina leggermente */
.elegant-contact a:hover .icon {
  background: var(--taupe-soft);
  color: #fff;
  box-shadow:
    0 2px 8px rgba(91, 80, 71, 0.25),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.elegant-contact .icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* === SEZIONE CONTATTI FULL VIEWPORT === */
.section--full {
  min-height: 100vh;
  /* occupa tutto lo schermo */
  display: flex;
  align-items: center;
  /* centra verticalmente */
  justify-content: center;
  /* centra orizzontalmente */
  box-sizing: border-box;
  padding: 5rem 1.5rem;
  /* spazio interno */
  scroll-margin-top: 80px;
  /* evita che venga coperta dalla navbar */
}


#contatti {
  position: relative;
  overflow: hidden;
}

/* Nascondi il background globale della sezione sui dispositivi mobile in modo FORZATO */
@media (max-width: 1023px) {
  #contatti::before {
    display: none !important;
  }

  #contatti .card:first-child {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    /* Assicura sfondo */
  }

  /* Inserisci la Dea Bendata DENTRO il riquadro bianco come filigrana */
  #contatti .card:first-child::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    background: url("images/giustizia-contatti-avvocato-avvocata-giulia-mezzetti-bologna.webp") left center / 110% auto no-repeat !important;
    opacity: 1 !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  #contatti .card:first-child * {
    position: relative !important;
    z-index: 2 !important;
    /* Testo sopra la filigrana */
  }

  /* Testo in grassetto per maggiore leggibilità sulla filigrana */
  #contatti .card:first-child p {
    font-weight: 500;
    color: var(--taupe-dark);
  }

  /* Su mobile orizzontale riduciamo ulteriormente la dimensione della filigrana */
  @media (orientation: landscape) {
    #contatti .card:first-child::before {
      background-size: 45% auto !important;
    }
  }
}

/* Il contenuto rimane sopra l’immagine */
#contatti .container {
  position: relative;
  z-index: 2;
}

/* Su Desktop torna il design ampio per tutta la sezione */
@media (min-width: 1024px) {
  #contatti {
    position: relative;
    overflow: visible;
    /* evita il taglio */
  }

  #contatti::before {
    content: "";
    position: absolute;
    display: block !important;
    /* riattiva l'immagine larga della sezione */
    top: -250px;
    /* più in alto */
    left: -0px;
    /* spostata a sinistra */
    width: 160%;
    /* più larga del contenitore */
    height: 120%;
    /* copre anche sopra e ai lati */
    background: url("images/giustizia-contatti-avvocato-avvocata-giulia-mezzetti-bologna.webp") left top / contain no-repeat;
    opacity: 1;
    z-index: 0;
  }
}

/* Floating button */
.floater {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 950
}

.floater__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--taupe);
  color: #fff;
  text-decoration: none;
  padding: .9rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 700
}

.floater__btn:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px
}


.floater {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Base comune */
.floater__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--taupe-soft);
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--taupe-dark);
  box-shadow: 0 4px 12px rgba(91, 80, 71, 0.15);
  font-weight: 600;
  transition: all 0.25s ease;
}

.floater__btn:hover {
  background: var(--taupe);
  box-shadow: 0 6px 16px rgba(91, 80, 71, 0.25);
  transform: translateY(-2px);
}

/* — Mobile: mostra solo la chiamata, effetto vetro — */
.floater__btn--call {
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--taupe-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.icon-phone {
  width: 24px;
  height: 24px;
}

/* Hover effetto vetro */
.floater__btn--call:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

/* Responsive visibility */
@media (max-width: 767px) and (orientation: portrait) {
  .floater__btn {
    display: none;
  }

  /* nasconde "Contattami" */
  .floater__btn--call {
    display: inline-flex;
  }

  /* mostra solo la cornetta */
}

.floater {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.floater.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Rimuove il bordo blu di focus sui dispositivi mobile e imposta uno personalizzato */
.floater__btn--call:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(91, 80, 71, 0.3);
  /* bagliore taupe */
}

/* === Pulsante “Contattami” DESKTOP - stile vetroso elegante === */
@media (min-width: 768px),
(orientation: landscape) {
  .floater__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    /* effetto vetro leggero */
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1.5px solid var(--taupe-dark);
    color: var(--taupe-dark);
    text-decoration: none;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(91, 80, 71, 0.12);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
  }

  .floater__btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(91, 80, 71, 0.5);
    color: var(--espresso);
    box-shadow: 0 6px 18px rgba(91, 80, 71, 0.22);
    transform: translateY(-2px);
  }

  .floater__btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(91, 80, 71, 0.25);
  }
}

/* Nascondi la cornetta mobile su desktop */
@media (min-width: 768px),
(orientation: landscape) {
  .floater__btn--call {
    display: none !important;
  }
}

/* Stato iniziale: scritta bianca sopra l'hero */
.floater__btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Quando la pagina viene scrollata: ritorna stile normale */
body.scrolled .floater__btn {
  color: var(--taupe-dark);
  border-color: var(--taupe-dark);
}



/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px
}



/* FOOTER */
.footer-chic-gradient {
  background: linear-gradient(180deg,
      rgba(244, 236, 229, 0.8) 0%,
      rgba(224, 212, 202, 0.85) 40%,
      rgba(198, 183, 171, 0.9) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #2A241F;
  padding: 2.5rem 1rem 2.8rem;
  font-family: "Playfair Display", serif;
  position: relative;
  overflow: hidden;
}

/* Luce diffusa sopra */
.footer-chic-gradient::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 20px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5), transparent 70%);
  filter: blur(12px);
  opacity: 0.6;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- LOGO --- */
.footer-logo-wrap {
  margin-bottom: 0.8rem;
}

.footer-logo-img {
  width: clamp(120px, 20vw, 160px);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.03);
  opacity: 1;
}

/* --- LINK --- */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #3E3530;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #7C6A5C;
  transform: scale(1.05);
}

/* --- COPYRIGHT --- */
.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #564D47;
  opacity: 0.75;
  margin-top: 0.5rem;
}

/* --- MOBILE --- */
@media (max-width: 600px) {
  .footer-chic-gradient {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 2rem 1rem;
  }

  .footer-links {
    gap: 0.8rem 1rem;
    font-size: 0.75rem;
  }

  .footer-logo-img {
    width: 180px;
  }
}

/* FOOTER */
.footer-chic-gradient {
  background: linear-gradient(180deg,
      rgba(244, 236, 229, 0.8) 0%,
      rgba(224, 212, 202, 0.85) 40%,
      rgba(198, 183, 171, 0.9) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #2A241F;
  padding: 2.5rem 1rem 2.8rem;
  font-family: "Playfair Display", serif;
  position: relative;
  overflow: hidden;
}

/* Luce diffusa sopra */
.footer-chic-gradient::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 20px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5), transparent 70%);
  filter: blur(12px);
  opacity: 0.6;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* LOGO */
.footer-logo-wrap {
  margin-bottom: -1rem;
  margin-top: -2rem;
}

.footer-logo-img {
  width: clamp(190px, 30vw, 2 410px);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.03);
  opacity: 1;
}

/* LINK */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #3E3530;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #7C6A5C;
  transform: scale(1.05);
}

/* COPYRIGHT */
.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #564D47;
  opacity: 0.8;
  margin-top: 0.6rem;
}

/* POWERED BY */
.footer-powered {
  margin-top: -0.5rem;
  margin-bottom: -1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: #6B5E55;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0.85;
}

.powered-logo {
  height: 42px;
  width: auto;
  vertical-align: middle;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-left: -0.5rem;

}

.powered-logo:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* DESKTOP ELEGANTE */
@media (min-width: 800px) {
  .footer-inner {
    align-items: center;
    text-align: center;
  }

  .footer-links {
    font-size: 0.85rem;
    gap: 2rem;
  }

  .footer-copy {
    font-size: 0.8rem;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--taupe-dark);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--taupe);
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* MOBILE */
@media (max-width: 600px) {
  .footer-chic-gradient {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 2rem 1rem;
  }

  .footer-links {
    gap: 0.8rem 1rem;
    font-size: 0.75rem;
  }

  .footer-logo-img {
    width: 150px;
  }

  .footer-copy,
  .footer-powered {
    text-align: center;
    line-height: 1.4;
  }
}

/* AREE DI INTERVENTO */

/* --- Icone stilizzate per le aree di intervento --- */
.area-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f7f2eb, #eae3da);
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.6),
    inset -2px -2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.area-icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) saturate(100%) sepia(25%) hue-rotate(-10deg);
  opacity: 0.8;
}

.accordion__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Colore di sfondo card più caldo */
.card {
  background: linear-gradient(180deg, #FAF9F7 0%, #F5EFE9 100%);

}

.accordion__header img {
  width: 48px;
  /* dimensione coerente per tutte */
  height: 48px;
  /* forza proporzioni quadrate */
  object-fit: contain;
  /* mantiene il rapporto senza deformazioni */
  aspect-ratio: 1 / 1;
  /* garantisce proporzioni perfette */
  display: block;
}



.card-img {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 14px;
  object-fit: cover;
  max-height: 240px;
  opacity: 0.9;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    scale 0.4s ease,
    box-shadow 0.4s ease;
  border: 1px solid rgba(91, 80, 71, 0.15);
  /* bordo taupe soft */
  box-shadow: 0 6px 18px rgba(91, 80, 71, 0.08);

}

/* Quando entra in viewport (effetto reveal) */
.reveal.active .card-img {
  opacity: 1;
  transform: translateY(10px);
}

/* Hover delicato */
.card-img:hover {
  scale: 1.02;
  box-shadow: 0 10px 24px rgba(91, 80, 71, 0.15);
  border-color: rgba(91, 80, 71, 0.25);
}






.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* quando entra nel viewport */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal.is-visible {
  opacity: 1;
  transform: none
}

/* opzionale: rispetto per ridotta animazione */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* Layout a due colonne per desktop */
@media (min-width: 768px),
(orientation: landscape) {
  #metodo .cards3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }

  /* Card di testo e immagine affiancate */
  #metodo .card {
    background: linear-gradient(180deg, #FAF9F7 0%, #F5EFE9 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(91, 80, 71, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }

  #metodo .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(91, 80, 71, 0.12);
  }

  /* Immagine armonizzata */
  #metodo .card-img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    border-radius: 14px;
    object-fit: cover;
  }
}

body {
  font-family: 'General Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #2B2B2B;
}


/* Spazio per logo su dispositivi in orizzontale (tablet/smartphone landscape) e desktop */
@media (min-width: 768px),
(orientation: landscape) and (orientation: landscape),
(min-width: 992px) {
  .hero__logo {
    margin-top: 90px;
    /* distanza dal bordo superiore o navbar */
    /* spazio inferiore per bilanciare */
    display: block;
    /* assicurarsi che logo abbia comportamento a blocco */
    max-width: 250px;
    /* limite larghezza per non essere troppo grande */

  }

  /* Opzionale: per il container contenente il logo e titolo si può aggiungere padding */
  .container.reveal {
    max-width: 100vw;
    /* mai più largo del viewport */
    width: 90%;
    /* o un valore percentuale più piccolo per margini */
    margin: 0 auto;
    /* centratura orizzontale */
    box-sizing: border-box;
    /* evita overflow con padding/border */
  }

  @media (max-width: 900px) and (orientation: landscape) {
    .hero__logo {
      margin-top: 310px;
      /* aumenta la distanza dal bordo superiore/nav su mobile orizzontale */
      margin-bottom: 20px;
      display: block;
    }

    /* Se serve, aggiusta anche il padding del container principale */
    .container.reveal {
      padding-top: 40px;
    }
  }




  @media (min-width: 768px),
  (orientation: landscape) {
    .nav__list a {
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      letter-spacing: 0.05em;
      font-size: clamp(18px, 2.2vw, 20px);
      /* o altro valore coerente */
      color: var(--taupe-dark);
      /* oppure il colore che vuoi */
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .nav__list a:hover,
    .nav__list a:focus {
      color: var(--taupe);
    }
  }



  .section-comp {
    min-height: 100vh;
    /* copre l’intero schermo */
    display: block;
    /* mantiene il flusso naturale */
    padding: 9rem 0 1rem 0;
    /* spazio sopra e sotto */
    box-sizing: border-box;
  }



  /* === LOGO SEMPRE VISIBILE SU DESKTOP === */
  @media (min-width: 768px),
  (orientation: landscape) {
    .nav .logo {
      opacity: 1 !important;
      visibility: visible !important;
      transform: translateY(0) !important;
    }
  }

  /* === LOGO NASCOSTO SU MOBILE FINO A SCROLL === */
  @media (max-width: 767px) and (orientation: portrait) {
    .nav .logo {
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
    }

    .nav.scrolled .logo {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
  }


  .nav.scrolled .logo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    height: clamp(28px, 10vw, 40px);
    /* proporzionato anche su mobile */
  }
}

/* === LOGO FISSO IN ALTO A SINISTRA SU TUTTI I DISPOSITIVI >= 768px === */
@media (min-width: 768px),
(orientation: landscape) {
  .nav .logo {
    position: fixed !important;
    top: clamp(6px, 1.5vw, 16px);
    /* 🔹 adattamento fluido verticale */
    left: clamp(12px, 2vw, 32px);
    /* 🔹 margine sinistro proporzionale */
    height: clamp(30px, 4vw, 75px);
    width: auto;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    z-index: 3000;
    pointer-events: auto;

  }
}


/* === MOBILE: logo nascosto finché non si scrolla === */
@media (max-width: 767px) and (orientation: portrait) {
  .nav .logo {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    position: fixed;
    top: 30px;
    left: 30px;
    height: clamp(35px, 20vw, 50px);
    z-index: 3000;
  }

  .nav.scrolled .logo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (min-width: 768px),
(orientation: landscape) {
  .nav__inner {
    padding: clamp(0.8rem, 1.8vw, 1rem) 1.5rem;
    /* più aria verticale */
  }

  .nav {
    min-height: clamp(50px, 8vh, 72px);
    /* alza leggermente la barra */
  }

  .nav .logo {
    top: 0;
    /* Rimossa discesa manuale per perfetto allineamento center */
  }
}

/* === NASCONDI LOGO QUANDO IL MENU MOBILE È ATTIVO === */
@media (max-width: 767px) and (orientation: portrait) {
  .nav.active .logo {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px);
    pointer-events: none;
  }
}

@media (min-width: 768px),
(orientation: landscape) {
  body {
    padding-top: clamp(1.25rem, 2vh, 1.875rem);
  }
}

/* =======================================================
   📱 RESPONSIVE ENHANCEMENTS (Mobile, Tablet, Landscape)
   Aggiunte per mantenere il layout intatto su ogni schermo
======================================================= */

/* Smartphone piccoli (fino a 480px) */
@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(1.6rem, 6vw, 2rem) !important;
  }

  .section {
    padding: 3rem 0;
  }

  .grid-2,
  .cards3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .nav__inner {
    padding: 0.5rem 1rem !important;
  }

  .accordion__header {
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 0.5rem !important;
    gap: 0.5rem !important;
  }

  .accordion__header img {
    width: 32px !important;
    height: 32px !important;
  }

  .area-icon {
    width: 42px !important;
    height: 42px !important;
    margin-right: 0 !important;
  }

  .accordion__header .h3 {
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    flex: 1;
    min-width: 0;
  }

  .accordion__toggle {
    width: auto !important;
    margin-top: 0 !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
    flex-shrink: 0;
  }

  .bio-toggle {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* Bio-toggle ridotto e centrato su landscape mobile */
@media (orientation: landscape) and (max-height: 500px) {
  .bio-toggle {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    font-size: 0.75rem !important;
    padding: 0.3rem 0.9rem !important;
  }
}

/* Tablet (fino a 1024px) */
@media (max-width: 1024px) {
  .hero--full {
    min-height: 80vh;
  }

  .section {
    padding: 3.5rem 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile in orizzontale (Landscape) */
@media (orientation: landscape) and (max-height: 500px) {
  .nav__inner {
    padding: 0.3rem 1rem !important;
    align-items: center !important;
  }

  .logo {
    height: clamp(40px, 12vh, 50px) !important;
    margin: 0 !important;
    align-self: center !important;
  }

  .nav__list {
    gap: 0.5rem !important;
  }

  .nav__list a {
    font-size: 0.85rem !important;
    padding: 0.1rem 0.3rem !important;
    transform: translateY(-1px);
    white-space: nowrap !important;
  }

  .hero--full {
    min-height: 100vh !important;
    height: 100vh !important;
    align-items: center !important;
    padding-top: 50px !important;
    padding-bottom: 30px !important;
  }

  .hero__logo {
    width: clamp(7.5rem, 16vw, 10rem) !important;
    margin-top: -10px !important;
    margin-bottom: 0.6rem !important;
    transform: translateY(-5px);
  }

  .hero__title {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem) !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.1 !important;
  }

  .hero__subtitle {
    font-size: clamp(0.85rem, 2vw, 0.95rem) !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
  }

  .hero .btn--light {
    padding: 0.3rem 0.7rem !important;
    font-size: 0.75rem !important;
  }

  .section {
    padding: 2.5rem 0;
  }
}

/* --- FIX OTTICO LOGO DESKTOP/TABLET --- */
@media (min-width: 768px) {
  .nav__inner .logo {
    height: 55px !important;
    max-height: 100% !important;
    /* non sfora mai la navbar */
    width: auto !important;
    margin-top: 3px !important;
    display: block !important;
  }
}

/* === MOBILE LANDSCAPE: logo ridotto per navbar bassa === */
@media (orientation: landscape) and (max-height: 500px) {
  .nav__inner .logo {
    height: 32px !important;
    margin-top: 5px !important;
  }

  .floater__btn {
    padding: 0.4rem 0.9rem !important;
    font-size: 0.75rem !important;
  }
}

/* === DISPOSITIVI MOLTO PICCOLI (Very Small Devices <= 360px) === */
@media (max-width: 360px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* Layout e contenitori */
  .container {
    padding: 0 1rem;
    overflow: hidden;
  }
  
  .card {
    padding: 1rem !important;
  }
  
  /* Hero e bottoni */
  .hero__logo {
    width: 120px !important;
  }
  .hero__title {
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
  }
  .hero__subtitle {
    font-size: 0.9rem !important;
  }
  .btn, .hero .btn, .btn--light {
    font-size: 0.75rem !important;
    padding: 0.5rem 1rem !important;
    white-space: normal !important; /* Permette al testo di andare a capo */
    height: auto;
    text-align: center;
  }
  
  /* Tipografia */
  .h2 { font-size: 1.3rem !important; }
  .h3, .h4 { font-size: 1.1rem !important; }
  p, .lead, .muted, li { font-size: 0.9rem !important; }

  /* Accordion flex-wrap per evitare overflow */
  .accordion__header {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .accordion__header .h3 {
    flex: 1 1 100% !important; /* Impone il wrap al titolo */
  }
  .accordion__toggle {
    width: 100% !important;
    text-align: center;
  }

  /* Bio toggle */
  .bio-toggle {
    width: 100% !important;
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
  }
  
  /* Immagini per evitare che sforino */
  .muted--image-round img {
    width: 200px !important;
    max-width: 100%;
  }
  
  /* Tasti flottanti */
  .floater {
    gap: 0.5rem !important;
    right: 0.5rem !important;
    bottom: 0.5rem !important;
  }
  .floater__btn {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.8rem !important;
  }
  .floater__btn--call {
    width: 44px !important;
    height: 44px !important;
  }
  .floater__btn--call .icon-phone {
    width: 20px !important;
    height: 20px !important;
  }
  
  /* Menu header logo, hamburger e link */
  .nav__inner .logo {
    height: 38px !important;
  }
  .nav__burger {
    width: 28px !important;
    height: 18px !important;
  }
  .overlay-logo {
    width: 200px !important;
    margin-bottom: 0.8rem !important;
  }
  .mobile-overlay__content {
    margin-top: 5vh !important;
  }
  .overlay-menu {
    gap: 0.8rem !important;
  }
  .overlay-menu a {
    font-size: 0.95rem !important;
  }
  
  /* Sezione contatti eleganza compatta */
  .elegant-contact {
    font-size: 0.85rem !important;
    gap: 0.7rem !important;
  }
  .elegant-contact a {
    padding: 0.7rem 0.8rem !important;
    gap: 0.6rem !important;
  }
  .elegant-contact .icon {
    width: 28px !important;
    height: 28px !important;
  }
}

/* === DISPOSITIVI EXTRA PICCOLI (Wearables / JioPhone <= 280px) === */
@media (max-width: 280px) {
  .hero__logo {
    width: 100px !important;
  }
  .hero__title {
    font-size: 1.1rem !important;
  }
  .hero__subtitle {
    font-size: 0.8rem !important;
  }
  .btn, .hero .btn, .btn--light {
    font-size: 0.65rem !important;
    padding: 0.4rem 0.6rem !important;
  }
  .nav__inner .logo {
    height: 32px !important;
  }
  .nav__burger {
    width: 24px !important;
    height: 16px !important;
  }
  .overlay-logo {
    width: 150px !important;
    margin-bottom: 0.5rem !important;
  }
  .mobile-overlay__content {
    margin-top: 2vh !important;
  }
  .overlay-menu {
    gap: 0.5rem !important;
  }
  .overlay-menu a {
    font-size: 0.85rem !important;
  }
  .h2 { font-size: 1.1rem !important; }
  p, .lead, .muted { font-size: 0.8rem !important; }
  
  .muted--image-round img {
    width: 160px !important;
  }
  
  /* Tasti flottanti estremamente ridotti */
  .floater {
    gap: 0.3rem !important;
    right: 0.3rem !important;
    bottom: 0.3rem !important;
  }
  .floater__btn {
    font-size: 0.65rem !important;
    padding: 0.4rem 0.6rem !important;
  }
  .floater__btn--call {
    width: 38px !important;
    height: 38px !important;
  }
  .floater__btn--call .icon-phone {
    width: 18px !important;
    height: 18px !important;
  }
  
  /* Contatti minificati */
  .elegant-contact {
    font-size: 0.75rem !important;
    gap: 0.5rem !important;
  }
  .elegant-contact a {
    padding: 0.5rem 0.6rem !important;
    gap: 0.5rem !important;
    flex-wrap: wrap; /* in caso la mail o via sia lunghissima */
    word-break: break-all;
  }
  .elegant-contact .icon {
    width: 24px !important;
    height: 24px !important;
  }
}