/* ===========================================
   VARIABILI E RESET DI BASE
   =========================================== */
:root {
  --nav-bg: #B6DEFF;        /* Azzurro della barra di navigazione */
  --site-bg: #EAF4FD;       /* Tonalità più chiara per lo sfondo di tutto il sito */
  --ink: #37453F;
  --paper: #FBFBF7;
  --sky: #BFDDE2;
  --meadow: #D3E3C7;
  --sun: #F2E7B8;
  --deep-teal: #4A7A80;
  --gold: #A98F3C;
  --white: #FEFEFC;

  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--site-bg);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--site-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
}

img {
  max-width: 100%;
  height: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.5rem;
  color: #367eb8;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===========================================
   HEADER & NAVIGAZIONE RESPONSIVE
   =========================================== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(6px);
  z-index: 1000;
  border-bottom: 1px solid rgba(38, 48, 43, 0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gruppofoto {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 45px;
  height: auto;
  object-fit: contain;
}

.header-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.78rem;
  color: #4a5568;
  font-weight: 500;
  line-height: 1.2;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #367eb8;
}

/* Pulsante Hamburger (Nascosto su Desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animazione Pulsante Hamburger in "X" quando aperto */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ===========================================
   STILI PER MOBILE & TABLET (Menu a tendina)
   =========================================== */
@media (max-width: 850px) {
  .menu-toggle {
    display: flex; /* Mostra il pulsante hamburger */
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: none; /* Nasconde il menu di default */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .main-nav.open {
    display: flex; /* Mostra il menu a tendina quando attivo */
  }

  .main-nav a {
    margin: 0;
    padding: 12px 20px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.72rem;
  }
}

/* ===========================================
   HEADER TITLES (SEO E GRAFICA)
   =========================================== */
.header-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.82rem;
  color: #4a5568;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2px;
}

/* Su schermi piccoli riduce leggermente per non occupare troppo spazio */
@media (max-width: 600px) {
  .brand-name {
    font-size: 1rem;
  }
  .brand-sub {
    font-size: 0.78rem;
  }
}

/* ===========================================
   HERO / HOME
   =========================================== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  background-color: transparent;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0 1rem;
  color: #1a202c;
}

.hero-sub {
  max-width: 45ch;
  margin-bottom: 1.8rem;
  color: #45524B;
}

.btn-primary {
  display: inline-block;
  background: #8dc6f5;
  color: #ffffff;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #367eb8;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
}

.breathing-shape {
  position: absolute;
  inset: 5%;
  background: radial-gradient(circle at 30% 30%, #B6DEFF, transparent 60%),
              radial-gradient(circle at 70% 40%, #C7E6FC, transparent 60%),
              radial-gradient(circle at 50% 75%, #D8F9FF, transparent 60%);
  border-radius: 42% 58% 63% 37% / 41% 42% 58% 59%;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.photo-frame {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================================
   SEZIONI GENERICHE & CHI SONO
   =========================================== */
.section {
  padding: 4.5rem 1.5rem;
  background-color: transparent;
}

.section-alt {
  background-color: transparent;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-chi-sono {
  width: 100%;
  padding: 5rem 1.5rem;
  background-color: transparent;
}

.chi-sono-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

.col-testo {
  flex: 1;
}

.col-testo h2 {
  font-size: 2rem;
  color: #1a202c;
  margin-bottom: 20px;
}

.col-testo p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 16px;
  text-align: justify;
}

.col-foto {
  flex: 1;
  display: flex;
  justify-content: center;
}

.foto-profilo {
  max-width: 100%;
  max-height: 550px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ===========================================
   SERVIZI
   =========================================== */

.cards-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  flex: 0 0 350px; /* Imposta una larghezza fissa per ogni card */
  scroll-snap-align: start;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(38, 48, 43, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Sulle schermate intermedie e piccole si adatta automaticamente */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr; /* Torna su una colonna per i telefoni */
  }
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(38, 48, 43, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--deep-teal);
}

.card-divider {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 1.5rem 0;
}

/* ===========================================
   AREE DI INTERVENTO
   =========================================== */
.aree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 15px;
  margin-top: 2rem;
}

.area-item {
  background-color: #ffffff;
  padding: 14px 20px;
  border-radius: 30px; /* Bordo arrotondato come nell'immagine */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.area-item::before {
  content: "•";
  color: var(--gold);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2rem;
}

/* ===========================================
   AREE DI INTERVENTO
   =========================================== */
.aree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 2rem;
}

.area-item {
  background-color: #ffffff;
  padding: 12px 18px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.area-item::before {
  content: "•";
  color: var(--gold);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ===========================================
   FAQ
   =========================================== */
.section-faq {
  background-color: transparent;
}

.menufaq {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-faq {
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(30, 27, 22, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-faq:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(30, 27, 22, 0.08);
}

.service-faq summary {
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #333333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.service-faq summary::-webkit-details-marker {
  display: none;
}

.service-faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
  margin-left: 15px;
}

.service-faq[open] summary::after {
  content: "−";
}

.accordion-content {
  padding: 0 24px 20px 24px;
  color: #4a4a4a;
  font-size: 0.98rem;
}

/* ===========================================
   DOVE RICEVO
   =========================================== */
.sedi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.sede-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sede-card h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
  color: var(--deep-teal);
}

.sede-card address {
  font-style: normal;
  margin-bottom: 20px;
}

.nome-professionista {
  font-size: 1.05rem;
  color: #1a202c;
  display: block;
}

.presso-studio {
  color: #666;
  font-size: 0.95rem;
}

.map-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: #3182ce;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

.orari-box {
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}

.orari-box h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ===========================================
   CONTATTI
   =========================================== */
.section-contatti {
  background-color: transparent;
}

.contatti-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 25px;
}

.contatti-info-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: #718096;
  font-weight: 600;
}

.info-valore {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d3748;
  text-decoration: none;
}

.info-valore:hover {
  color: #3182ce;
}

.contatti-azioni-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  width: 100%;
}

.btn-azione {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-chiamami {
  background-color: #2b6cb0;
  color: #ffffff;
}

.btn-chiamami:hover {
  background-color: #1a4971;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #8dc6f5;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #367eb8;
  transform: translateY(-2px);
}

.btn-email {
  background-color: #e2e8f0;
  color: #2d3748;
}

.btn-email:hover {
  background-color: #cbd5e0;
  transform: translateY(-2px);
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
  width: 100%;
  background-color: transparent;
  padding: 30px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: #718096;
}

.dot {
  color: #a0aec0;
  margin: 0 6px;
}

/* ===========================================
   RESPONSIVE (TABLET & MOBILE)
   =========================================== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2.5rem;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .chi-sono-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .contatti-layout {
    flex-direction: column;
    gap: 30px;
  }

  .contatti-azioni-right {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }

  .main-nav a {
    margin: 0 8px;
    font-size: 0.9rem;
  }

  .dot {
    display: none;
  }

  .footer-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}