/* ── FONT (self-hosted: nessuna richiesta a Google Fonts, niente invio dell'IP dei visitatori a terzi) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/inter-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/lora-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/lora-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/lora-400-italic.woff2') format('woff2');
}

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

:root {
  /* Colore di base: verde del logo, in una tonalità un po' più scura per garantire la leggibilità del testo bianco sui pulsanti */
  --primary: #2A8226;
  --primary-light: #EAF6EA;
  --primary-dark: #1E6A1B;
  --warm: #F7F3EE;
  --text: #2C2C2A;
  --text-muted: #6B6B68;
  --border: #DDD8D0;
  --white: #FFFFFF;
  --radius: 12px;
  --ink: #2B2E83;
  /* Psicoterapia: rosa */
  --psico: #E6007E;
  --psico-light: #FCE8F3;
  --psico-dark: #B3006A;
  /* Sezione "Il team": marroncino e bianco */
  --team: #9A7B5B;
  --team-light: #F3ECE3;
  --team-dark: #6E5439;
  --logop: #009FE3;
  --logop-light: #E6F5FC;
  --logop-dark: #0077AA;
  --appr: #FFED00;
  --appr-light: #FFF4C2;
  --appr-dark: #8A6300;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary-dark); }
.nav-links a.current { color: var(--primary-dark); font-weight: 500; }
.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: white !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── NAV: dropdown "Servizi" ── */
.nav-dropdown { position: relative; }
.nav-drop-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
}
.nav-drop-toggle:hover { color: var(--primary-dark); }
.nav-drop-toggle .caret { font-size: 0.65rem; transition: transform 0.2s; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 30px -18px rgba(44,44,42,0.3);
  min-width: 210px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown:hover .caret { transform: rotate(180deg); }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text);
}
.nav-dropdown-menu a:hover { background: var(--primary-light); color: var(--primary-dark); }
.nav-dropdown-menu .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-logop { background: var(--logop); }
.dot-appr { background: var(--appr); box-shadow: 0 0 0 1px rgba(138,99,0,0.35); }
.dot-psico { background: var(--psico); }

/* ── HERO ── */
.hero {
  background: var(--warm);
  padding: 6rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--primary-dark); }
.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--primary); background: var(--primary-light); }

.hero-visual { display: flex; flex-direction: column; gap: 1rem; }
.hero-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
a.hero-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.hero-card-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.hero-card h3 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.2rem; color: var(--text); }
.hero-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ── LOGO ── */
.nav-logo-img { height: 44px; width: auto; display: block; }
.hero-logo { width: 150px; height: auto; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .hero-logo { width: 120px; } }
.footer-logo { display: flex; align-items: center; gap: 0.65rem; }
.footer-logo-img { height: 28px; width: auto; }

/* ── SECTION WRAPPER ── */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
  font-weight: 300;
}

/* ── SERVIZI: card macro-area (home) ── */
#servizi-overview { background: var(--warm); }
.macro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.macro-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.macro-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(44,44,42,0.25); }
.macro-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--primary-light);
}
.macro-card h3 { font-family: 'Lora', serif; font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; }
.macro-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; flex-grow: 1; }
.macro-btn {
  margin-top: 1.5rem;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  transition: background 0.2s, color 0.2s;
}
.macro-btn:hover { background: var(--primary); color: white; }

.macro-psico { border-top-color: var(--psico); }
.macro-psico .macro-icon { background: var(--psico-light); }
.macro-psico .macro-btn { background: var(--psico-light); color: var(--psico-dark); }
.macro-psico .macro-btn:hover { background: var(--psico); color: white; }

.macro-logop { border-top-color: var(--logop); }
.macro-logop .macro-icon { background: var(--logop-light); }
.macro-logop .macro-btn { background: var(--logop-light); color: var(--logop-dark); }
.macro-logop .macro-btn:hover { background: var(--logop); color: white; }

.macro-appr { border-top-color: var(--appr); }
.macro-appr .macro-icon { background: var(--appr-light); }
.macro-appr .macro-btn { background: var(--appr-light); color: var(--appr-dark); }
.macro-appr .macro-btn:hover { background: var(--appr-dark); color: white; }

/* ── CHI SIAMO / ASSOCIAZIONE ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-values { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.value-item { display: flex; gap: 1rem; align-items: flex-start; }
.value-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-top: 0.6rem; flex-shrink: 0; }
.value-item p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.value-item strong { color: var(--text); font-weight: 500; }

.about-stat-block {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.stat { text-align: center; }
.stat-number { font-family: 'Lora', serif; font-size: 2.5rem; font-weight: 600; color: var(--primary-dark); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ── CONTATTO ── */
#contatto { background: var(--primary-dark); }
#contatto .section-eyebrow { color: rgba(255,255,255,0.5); }
#contatto .section-title { color: white; }
#contatto .section-subtitle { color: rgba(255,255,255,0.7); max-width: 100%; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; color: rgba(255,255,255,0.7); font-weight: 400; }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  color: white;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.15); }
.form-group select option { background: var(--primary-dark); color: white; }
.form-group textarea { resize: vertical; min-height: 110px; }
.gdpr-check { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 0.5rem; }
.gdpr-check input[type="checkbox"] { margin-top: 0.25rem; flex-shrink: 0; accent-color: var(--primary); }
.gdpr-check label { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.gdpr-check a { color: rgba(255,255,255,0.75); text-underline-offset: 2px; }
.btn-submit {
  background: white;
  color: var(--primary-dark);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
  align-self: flex-start;
}
.btn-submit:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.7; cursor: default; transform: none; }
.form-status { font-size: 0.85rem; color: rgba(255,255,255,0.75); min-height: 1.2em; }
.form-status.error { color: #ffb4b4; }

.contact-info { color: rgba(255,255,255,0.8); }
.contact-info h3 { font-family: 'Lora', serif; font-size: 1.3rem; color: white; margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-item-icon {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.contact-item p { font-size: 0.9rem; line-height: 1.6; }
.contact-item span { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 0.1rem; }
.contact-note {
  margin-top: 2rem; padding: 1.25rem; background: rgba(255,255,255,0.08); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15); font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.6;
}

/* ── PRIVACY POLICY ── */
#privacy { border-top: 1px solid var(--border); }
.privacy-content { max-width: 760px; margin: 0 auto; }
.privacy-content h1, .privacy-content h2 { font-family: 'Lora', serif; font-size: 1.6rem; font-weight: 600; color: var(--text); margin-bottom: 2rem; }
.privacy-content h3 { font-size: 1rem; font-weight: 500; color: var(--text); margin-top: 2rem; margin-bottom: 0.75rem; }
.privacy-content p, .privacy-content li { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 0.5rem; }
.privacy-content ul { padding-left: 1.25rem; }
.privacy-content li { margin-bottom: 0.35rem; }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid var(--border);
  padding: 1.25rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; z-index: 999; flex-wrap: wrap;
}
#cookie-banner p { font-size: 0.82rem; color: var(--text-muted); max-width: 640px; line-height: 1.6; }
#cookie-banner a { color: var(--primary-dark); }
.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn-cookie-accept { background: var(--primary); color: white; border: none; padding: 0.5rem 1.25rem; border-radius: 6px; font-size: 0.85rem; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif; }

/* ── FOOTER ── */
footer { background: var(--text); padding: 3rem 2rem; color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-logo { font-family: 'Lora', serif; font-size: 1.1rem; color: white; text-decoration: none; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); margin-bottom: 0.85rem; font-weight: 500; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 1.25rem 3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: white; border-bottom: 1px solid var(--border); padding: 0.5rem 1.25rem 1rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 0; width: 100%; }
  .nav-links a.nav-cta { display: inline-block; width: auto; margin-top: 0.5rem; }
  .nav-dropdown { width: 100%; }
  .nav-drop-toggle { width: 100%; justify-content: space-between; padding: 0.75rem 0; }
  .nav-dropdown-menu {
    display: flex !important; position: static; transform: none; border: none; box-shadow: none;
    padding: 0 0 0.5rem 0.75rem; min-width: 0;
  }
  section { padding: 3.5rem 1.25rem; }
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem; }
  .footer-inner { flex-direction: column; }
  .footer-cols { gap: 2rem; }
}

/* ── ACCESSIBILITÀ ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ── SEZIONI DI APPROFONDIMENTO PER AREA (pagine dedicate) ── */
.back-link { display: inline-block; font-size: 0.8rem; color: var(--text-muted); text-decoration: none; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--text); }

.team-heading { font-family: 'Lora', serif; font-size: 1.2rem; font-weight: 600; color: var(--text); margin: 3rem 0 0.25rem; }
.team-subgroup { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); margin: 1.75rem 0 0.85rem; }
.team-note { margin-top: 1.75rem; font-size: 0.85rem; color: var(--text-muted); }
.team-note a { font-weight: 600; text-decoration: none; }
.team-note a:hover { text-decoration: underline; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.team-card { background: white; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.team-card .name { font-family: 'Lora', serif; font-weight: 600; font-size: 1rem; color: var(--text); margin-bottom: 0.3rem; }
.team-card .role { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.9rem; }
.team-card .card-links { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.team-card .phone { font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--primary-dark); }
.team-card .phone:hover { text-decoration: underline; }
.team-card .profile-link { font-size: 0.8rem; font-weight: 600; text-decoration: none; color: var(--text-muted); }
.team-card .profile-link:hover { color: var(--text); text-decoration: underline; }

#area-psicologia { background: var(--appr-light); }
#area-psicologia .section-eyebrow { color: var(--appr-dark); }
#area-psicologia .team-card { border-top-color: var(--appr); }
#area-psicologia .team-card .phone { color: var(--appr-dark); }
#area-psicologia .service-item { border-top: 3px solid var(--appr); }
#area-psicologia .team-note a, #area-psicologia .back-link:hover { color: var(--appr-dark); }
#area-psicologia .macro-icon { background: var(--appr-light); }

#area-logopedia { background: var(--logop-light); }
#area-logopedia .section-eyebrow { color: var(--logop-dark); }
#area-logopedia .team-card { border-top-color: var(--logop); }
#area-logopedia .team-card .phone { color: var(--logop-dark); }
#area-logopedia .service-item { border-top: 3px solid var(--logop); }
#area-logopedia .team-note a { color: var(--logop-dark); }

#area-psicoterapia { background: var(--psico-light); }
#area-psicoterapia .section-eyebrow { color: var(--psico-dark); }
#area-psicoterapia .team-card { border-top-color: var(--psico); }
#area-psicoterapia .team-card .phone { color: var(--psico-dark); }
#area-psicoterapia .service-item { border-top: 3px solid var(--psico); }
#area-psicoterapia .team-note a { color: var(--psico-dark); }

/* ── IL TEAM: foto di gruppo + rubrica ── */
#team { background: var(--team-light); }
.team-photo-wrap { display: flex; justify-content: center; margin: 2.5rem 0 3rem; }
.team-photo { width: 100%; max-width: 460px; border-radius: 20px; display: block; box-shadow: 0 24px 48px -24px rgba(44,44,42,0.35); cursor: zoom-in; transition: transform 0.15s; }
.team-photo:hover { transform: scale(1.015); }

.team-social { margin-top: 3rem; text-align: center; }
.team-social p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.team-social a { font-size: 1.05rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.team-social a:hover { color: var(--primary-dark); }

/* ── ACCORDION: VOCI DI SERVIZIO ── */
.service-item {
  background: white; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 10px; margin-top: 0.85rem; overflow: hidden;
}
.service-item summary {
  cursor: pointer; list-style: none; padding: 1rem 1.25rem; font-family: 'Lora', serif; font-weight: 600; font-size: 0.98rem; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.service-item summary::-webkit-details-marker { display: none; }
.service-item summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--text-muted); flex-shrink: 0; }
.service-item[open] summary::after { content: '–'; }
.service-item .service-body, .service-item p, .service-item ul { padding: 0 1.25rem 1.1rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }
.service-item ul { padding-left: 2.25rem; margin: 0 0 1.1rem; }
.service-item li { margin-bottom: 0.35rem; }

/* ── IL TEAM: BIOGRAFIE A FISARMONICA ── */
.bio-card { background: white; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: var(--radius); margin-bottom: 1.1rem; overflow: hidden; scroll-margin-top: 90px; }
.bio-card summary { cursor: pointer; list-style: none; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bio-card summary::-webkit-details-marker { display: none; }
.bio-card .bio-head-text { flex: 1; min-width: 200px; }
.bio-card .name { font-family: 'Lora', serif; font-weight: 600; font-size: 1.05rem; color: var(--text); margin-bottom: 0.2rem; }
.bio-card .role { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.bio-card .bio-toggle-row { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.bio-card .phone { font-size: 0.85rem; font-weight: 600; color: var(--primary-dark); text-decoration: none; white-space: nowrap; }
.bio-card .phone:hover { text-decoration: underline; }
.bio-card .bio-expand-label { font-size: 0.76rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: 20px; padding: 0.3rem 0.8rem; white-space: nowrap; }
.bio-card[open] .bio-expand-label { visibility: hidden; }
.bio-card .bio-body { padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 1.25rem; }
.bio-card .bio-body h4 { font-family: 'Lora', serif; font-size: 0.85rem; font-weight: 600; color: var(--text); margin: 1.1rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.bio-card .bio-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 0.85rem; }
.bio-card .bio-body ul { margin: 0 0 0.85rem; padding-left: 1.2rem; }
.bio-card .bio-body li { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0.4rem; }
.bio-card .bio-contacts { font-size: 0.85rem; color: var(--text); margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border); line-height: 1.9; }
.bio-card .bio-contacts a { color: var(--primary-dark); text-decoration: none; font-weight: 600; }
.bio-card .bio-contacts a:hover { text-decoration: underline; }

/* ── PAGINE SEMPLICI (bacheca, ecc.) ── */
.page-header { background: var(--warm); text-align: center; }
.page-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── FOTO PROFESSIONISTI (avatar nelle bio-card) ── */
.bio-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; cursor: zoom-in; transition: transform 0.15s; }
.bio-avatar:hover { transform: scale(1.06); }
.bio-avatar-placeholder {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lora', serif; font-weight: 600; font-size: 0.95rem;
}

/* ── PRESIDENTE (associazione.html) ── */
.president-card {
  display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem;
  padding: 1.25rem 1.5rem; background: white; border: 1px solid var(--border); border-radius: var(--radius);
}
.president-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; cursor: zoom-in; transition: transform 0.15s; }
.president-card img:hover { transform: scale(1.06); }
.president-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ── GALLERIA FOTO STUDIO (pagine servizi) ── */
.studio-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.studio-gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block;
  box-shadow: 0 12px 24px -16px rgba(44,44,42,0.3);
  cursor: zoom-in; transition: transform 0.15s;
}
.studio-gallery img:hover { transform: scale(1.02); }

/* ── LIGHTBOX (ingrandimento foto al click) ── */
#lightbox-overlay {
  position: fixed; inset: 0; background: rgba(20,18,17,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 2000; padding: 2rem; cursor: zoom-out;
}
#lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); cursor: default; }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem; width: 44px; height: 44px;
  border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: white;
  font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
@media (max-width: 768px) {
  .lightbox-close { top: 0.75rem; right: 0.75rem; width: 40px; height: 40px; }
}

/* ── ASSOCIAZIONE: testo uniforme (stessa dimensione e peso per tutti i paragrafi) ── */
.about-text,
#chi-siamo .value-item p,
#chi-siamo .president-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-muted);
}
.about-text { margin-bottom: 1rem; }
.about-text a,
#chi-siamo .president-card a { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.about-text a:hover,
#chi-siamo .president-card a:hover { text-decoration: underline; }
#chi-siamo .president-card strong,
#chi-siamo .value-item strong { color: var(--text); font-weight: 600; }
.about-lead { margin-top: 1.75rem; margin-bottom: 0; color: var(--text); font-weight: 500; }
#chi-siamo .about-values { margin-top: 1.25rem; }

/* ── ASSOCIAZIONE: foto dell'inaugurazione ── */
#inaugurazione { background: var(--warm); }
.inaug-gallery { margin: 2rem 0 0; display: flex; justify-content: center; }
.inaug-gallery img {
  width: 100%; max-width: 900px; height: auto; display: block; border-radius: 16px;
  box-shadow: 0 24px 48px -24px rgba(44,44,42,0.35); cursor: zoom-in; transition: transform 0.15s;
}
.inaug-gallery img:hover { transform: scale(1.01); }

/* ── IL TEAM: marroncino e bianco (niente verde/rosa) ── */
#team .section-eyebrow { color: var(--team-dark); }
#team .bio-card { border-top-color: var(--team); }
#team .bio-card .phone,
#team .bio-card .bio-contacts a { color: var(--team-dark); }
#team .team-social a { color: var(--team-dark); }
#team .team-social a:hover { color: var(--text); }
#team a:focus-visible, #team button:focus-visible { outline-color: var(--team-dark); }
