/* Font ospitati sul sito (licenza SIL OFL): nessuna richiesta a server esterni */
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/playfair-display-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/playfair-display-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url('fonts/playfair-display-latin-900-normal.woff2') format('woff2');}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url('fonts/playfair-display-latin-400-italic.woff2') format('woff2');}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url('fonts/playfair-display-latin-700-italic.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:300;font-display:swap;src:url('fonts/dm-sans-latin-300-normal.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/dm-sans-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/dm-sans-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/dm-sans-latin-600-normal.woff2') format('woff2');}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --slate: #2e2e2e;
  --slate-deep: #1a1a1a;
  --gold: #c0392b;
  --gold-light: #e8776d;
  --gold-muted: rgba(192,57,43,0.12);
  --paper: #f7f4f1;
  --white: #ffffff;
  --gray: #6b6b6b;
  --border: #e2dbd5;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--paper); color: var(--slate); overflow-x: hidden; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,244,241,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
}
.nav-logo { display: flex; flex-direction: column; }
.nav-logo .logo-top { display: flex; align-items: baseline; gap: 0.15em; }
.nav-logo .logo-studio { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.35rem; color: var(--slate); letter-spacing: 0.04em; }
.nav-logo .logo-stoppa { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.35rem; color: var(--gold); letter-spacing: 0.04em; }
.nav-logo .logo-line { height: 1px; background: linear-gradient(to right, var(--gold), transparent); margin: 3px 0; }
.nav-logo .logo-sub { font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.58rem; letter-spacing: 0.22em; color: var(--gray); }

.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--slate); text-decoration: none; letter-spacing: 0.05em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--slate); color: var(--white);
  border: none; padding: 0.65rem 1.4rem; font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; cursor: pointer;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--white); }

/* ─── PAGE TABS ─── */
.page-tabs {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
  background: var(--slate-deep);
  display: flex; gap: 0; overflow-x: auto;
  border-bottom: 2px solid var(--gold);
  scrollbar-width: none;
}
.page-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.7rem 1.4rem; cursor: pointer; transition: all 0.2s;
  white-space: nowrap; border-right: 1px solid rgba(255,255,255,0.08);
}
.tab-btn.active { color: var(--gold-light); background: rgba(192,57,43,0.15); }
.tab-btn:hover { color: var(--white); }

/* ─── PAGE WRAPPER ─── */
.page { display: none; padding-top: 120px; }
.page.active { display: block; }

/* ─── COMMON ─── */
.section { padding: 6rem 5%; }
.section-alt { background: var(--white); }
.section-dark { background: var(--slate); }

.eyebrow {
  font-size: 0.68rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.25em; text-transform: uppercase;
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

.section-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--slate); line-height: 1.15;
  margin-bottom: 1rem;
}
.section-title em { color: var(--gold); font-style: normal; }
.section-title-light { color: var(--white); }
.section-sub { font-size: 1rem; color: var(--gray); line-height: 1.75; max-width: 600px; margin-bottom: 3rem; }
.section-sub-light { color: rgba(255,255,255,0.55); }

.btn-primary {
  background: var(--gold); color: var(--white);
  padding: 1rem 2rem; font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.05em;
  border: none; cursor: pointer; transition: all 0.2s; display: inline-block; text-decoration: none;
}
.btn-primary:hover { background: #a93226; }
.btn-outline {
  background: transparent; color: rgba(255,255,255,0.7);
  padding: 1rem 2rem; font-family: 'DM Sans', sans-serif;
  font-weight: 500; font-size: 0.9rem; letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.2); cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ═══════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--slate);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  padding: 8rem 5% 5rem;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-image: linear-gradient(135deg,#3b3b3b 0%,#1a1a1a 100%);
  background-size: cover; background-position: center 35%;
  pointer-events: none; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(26,26,26,0.96) 0%, rgba(26,26,26,0.82) 55%, rgba(26,26,26,0.50) 100%);
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--gold), transparent); z-index: 2;
}
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; }
.hero-eyebrow {
  font-size: 0.7rem; font-weight: 600; color: var(--gold-light);
  letter-spacing: 0.25em; text-transform: uppercase;
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 1.08;
  color: var(--white); max-width: 760px; margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.75;
  max-width: 540px; margin-bottom: 3rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 5rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid rgba(255,255,255,0.1); }
.stat-item { padding: 1.8rem 2rem; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--gold-light); line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.45); letter-spacing: 0.05em; }

/* QUOTE STRIP */
.quote-strip {
  background: var(--gold); padding: 2rem 5%;
  display: flex; align-items: center; gap: 2rem;
}
.quote-strip blockquote {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.25rem; color: var(--white); line-height: 1.4;
}
.quote-strip cite {
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem;
  font-weight: 600; color: rgba(255,255,255,0.7);
  font-style: normal; white-space: nowrap;
}

/* CARDS GRID */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5px; background: var(--border); }
.prob-card { background: var(--white); padding: 2.5rem; position: relative; }
.prob-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0;
  background: var(--gold); transition: height 0.4s;
}
.prob-card:hover::before { height: 100%; }
.prob-num { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 900; color: var(--border); line-height: 1; margin-bottom: 1rem; }
.prob-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--slate); margin-bottom: 1rem; line-height: 1.35; }
.prob-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.75; }

/* VALORI / PILASTRI */
.pilastri { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 3rem; }
.pilastro {
  padding: 2.5rem; border: 1px solid var(--border); position: relative;
  background: var(--paper); transition: border-color 0.3s;
}
.pilastro:hover { border-color: var(--gold); }
.pilastro-num { font-family: 'Playfair Display', serif; font-size: 0.7rem; font-weight: 700; color: var(--gold); letter-spacing: 0.2em; margin-bottom: 1rem; }
.pilastro h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--slate); margin-bottom: 0.75rem; }
.pilastro p { font-size: 0.88rem; color: var(--gray); line-height: 1.75; }

/* DARK QUOTE */
.dark-quote {
  background: var(--slate-deep); border-left: 3px solid var(--gold);
  padding: 2.5rem 3rem; margin-top: 3rem;
}
.dark-quote blockquote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.15rem; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 0.75rem; }
.dark-quote cite { font-size: 0.78rem; color: var(--gold-light); font-style: normal; font-weight: 600; letter-spacing: 0.08em; }

/* SERVIZI HOME GRID */
.servizi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5px; background: var(--border); }
.serv-card {
  background: var(--white); padding: 2.5rem; position: relative;
  display: flex; flex-direction: column;
}
.serv-card:hover { background: var(--paper); }
.serv-num { font-size: 0.65rem; font-weight: 700; color: var(--gold); letter-spacing: 0.2em; margin-bottom: 1rem; }
.serv-card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--slate); margin-bottom: 0.75rem; line-height: 1.3; }
.serv-card p { font-size: 0.85rem; color: var(--gray); line-height: 1.75; flex: 1; margin-bottom: 1.2rem; }
.serv-link { font-size: 0.78rem; font-weight: 600; color: var(--gold); letter-spacing: 0.05em; text-decoration: none; cursor: pointer; background: none; border: none; font-family: 'DM Sans', sans-serif; }
.serv-link:hover { color: var(--slate); }
.serv-card-special { background: var(--slate); }
.serv-card-special h3 { color: var(--white); }
.serv-card-special p { color: rgba(255,255,255,0.6); }
.serv-card-special:hover { background: var(--slate-deep); }

/* TEAM HOME */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.team-img-placeholder {
  aspect-ratio: 3/4; background: var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.team-img-placeholder::after {
  content: 'Dal\A 1990';
  font-family: 'Playfair Display', serif; font-size: 2.4rem; font-style: italic;
  color: var(--gray); text-align: center; white-space: pre; line-height: 2;
}
.team-img-placeholder::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: var(--gold);
}
.team-content p { font-size: 0.95rem; color: var(--gray); line-height: 1.85; margin-bottom: 1.2rem; }
.team-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--gold); letter-spacing: 0.05em; text-decoration: none; margin-top: 1rem; cursor: pointer; background: none; border: none; font-family: 'DM Sans', sans-serif; }

/* TESTIMONIAL */
.testi-section {
  background: var(--paper); padding: 6rem 5%; text-align: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.testi-quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.5rem; color: var(--slate); line-height: 1.55; max-width: 760px; margin: 0 auto 1.5rem; }
.testi-author { font-size: 0.8rem; font-weight: 600; color: var(--gold); letter-spacing: 0.1em; }
.quote-mark { font-family: 'Playfair Display', serif; font-size: 5rem; color: var(--gold); opacity: 0.3; line-height: 0.5; margin-bottom: 1.5rem; }

/* CTA FINALE */
.cta-final { background: var(--slate); padding: 7rem 5%; text-align: center; }
.cta-final .eyebrow { justify-content: center; }
.cta-final .eyebrow::before { display: none; }
.cta-final h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem,4vw,3rem); font-weight: 900; color: var(--white); margin-bottom: 1.2rem; }
.cta-final p { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.75; }

/* FOOTER */
footer {
  background: var(--slate-deep); padding: 3.5rem 5% 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem; border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .f-studio { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.1rem; color: var(--white); }
.footer-brand .f-stoppa { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.1rem; color: var(--gold-light); }
.footer-brand .f-line { height: 1px; background: linear-gradient(to right, var(--gold), transparent); margin: 4px 0; max-width: 120px; }
.footer-brand .f-sub { font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.55rem; letter-spacing: 0.22em; color: rgba(255,255,255,0.3); }
.footer-brand p { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-top: 1rem; line-height: 1.7; }
.footer-links h4 { font-size: 0.65rem; font-weight: 600; color: var(--gold-light); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a, .footer-links button { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-decoration: none; background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; padding: 0; transition: color 0.2s; }
.footer-links a:hover, .footer-links button:hover { color: var(--gold-light); }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; font-size: 0.72rem; color: rgba(255,255,255,0.2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* PAGE HERO COMUNE */
.page-hero {
  background: var(--slate); padding: 7rem 5% 5rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--gold), transparent);
}
.page-hero h1 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(2.2rem,4.5vw,3.8rem); color: var(--white); line-height: 1.1; margin-bottom: 1.2rem; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 640px; line-height: 1.8; }

/* SERVIZI PAGE */
.servizio-block { padding: 5rem 5%; border-bottom: 1px solid var(--border); }
.servizio-block:nth-child(even) { background: var(--white); }
.servizio-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; }
.serv-num-big { font-family: 'Playfair Display', serif; font-size: 5rem; font-weight: 900; color: var(--border); line-height: 1; margin-bottom: 0.5rem; }
.serv-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--slate); line-height: 1.25; margin-bottom: 1rem; }
.serv-gold-line { width: 40px; height: 2px; background: var(--gold); }
.serv-body > p { font-size: 0.95rem; color: var(--gray); line-height: 1.85; margin-bottom: 2rem; }
.serv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.serv-col-title { font-size: 0.65rem; font-weight: 700; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem; }
.serv-col ul { list-style: none; }
.serv-col li { font-size: 0.85rem; color: var(--gray); line-height: 1.7; padding: 0.3rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 0.5rem; align-items: flex-start; }
.serv-col li::before { content: '•'; color: var(--gold); flex-shrink: 0; }
.serv-col li:last-child { border-bottom: none; }

/* STUDIO PAGE */
.studio-page-grid { display: grid; grid-template-columns: 380px 1fr; gap: 0; min-height: 80vh; }
.studio-sidebar {
  background: var(--slate); padding: 5rem 3rem; position: sticky; top: 120px;
  align-self: start; display: flex; flex-direction: column;
}
.studio-sidebar .img-ph {
  width: 100%; aspect-ratio: 3/4; background: var(--slate-deep);
  margin-bottom: 2rem; position: relative; display: flex; align-items: center; justify-content: center;
}
.studio-sidebar .img-ph::after { content: 'Dal\A 1990'; font-family: 'Playfair Display', serif; font-style: italic; font-size: 2rem; color: rgba(255,255,255,0.3); text-align: center; white-space: pre; line-height: 1.8; }
.studio-sidebar .img-ph::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); }
.studio-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; color: var(--white); margin-bottom: 0.3rem; }
.studio-role { font-size: 0.72rem; font-weight: 600; color: var(--gold-light); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.5rem; }
.studio-contact { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-top: 2rem; line-height: 1.7; }
.studio-contact a { color: var(--gold-light); text-decoration: none; }
.studio-main { padding: 5rem 4rem; }
.studio-main p { font-size: 0.97rem; color: var(--gray); line-height: 1.9; margin-bottom: 1.5rem; }
.studio-valori { background: var(--paper); border: 1px solid var(--border); padding: 2rem; margin-top: 2.5rem; }
.studio-valori h3 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--slate); margin-bottom: 1rem; }
.valore { display: flex; gap: 1rem; align-items: flex-start; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.valore:last-child { border-bottom: none; }
.valore-label { font-size: 0.7rem; font-weight: 700; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; min-width: 110px; }
.valore-text { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* CONTATTI PAGE */
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.contatti-left { padding: 5rem; background: var(--slate); }
.contatti-left h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.contatti-left p { font-size: 0.92rem; color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 2.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.ci-item { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon { font-size: 1rem; width: 20px; flex-shrink: 0; }
.ci-text { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.5; }
.ci-text a { color: var(--gold-light); text-decoration: none; }
.ci-label { font-size: 0.65rem; font-weight: 700; color: var(--gold-light); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.2rem; }
.contatti-right { padding: 5rem; background: var(--paper); }
.contatti-right h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--slate); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-label { font-size: 0.68rem; font-weight: 700; color: var(--slate); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.form-input {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--border); background: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--slate);
  outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--gold); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; cursor: pointer; }
.form-textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.75rem; color: var(--gray); margin-top: 1rem; line-height: 1.5; }

/* ═══════════════════════════════════════
   CIRCOLARI PAGE
═══════════════════════════════════════ */
.circolari-filter-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.filter-label {
  font-size: 0.68rem; font-weight: 700; color: var(--gold);
  letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
}
.filter-group { display: flex; gap: 0.75rem; flex-wrap: wrap; flex: 1; }
.filter-btn {
  background: none; border: 1px solid var(--border); padding: 0.45rem 1rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 500;
  color: var(--gray); cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--white); }
.filter-search {
  border: 1px solid var(--border); background: var(--paper);
  padding: 0.5rem 1rem; font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
  color: var(--slate); outline: none; min-width: 220px; transition: border-color 0.2s;
}
.filter-search:focus { border-color: var(--gold); }

.circolari-list { background: var(--paper); padding: 3rem 5%; }
.circolari-count { font-size: 0.72rem; font-weight: 600; color: var(--gray); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 2rem; }
.circolari-count span { color: var(--gold); }

.circolare-item {
  background: var(--white); border: 1px solid var(--border);
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 2rem; padding: 1.75rem 2rem;
  margin-bottom: 1.5px; transition: border-color 0.25s, box-shadow 0.25s;
  position: relative;
}
.circolare-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold); transform: scaleY(0); transition: transform 0.25s; transform-origin: bottom;
}
.circolare-item:hover { border-color: var(--gold); box-shadow: 0 4px 24px rgba(192,57,43,0.08); }
.circolare-item:hover::before { transform: scaleY(1); }

.circolare-date {
  text-align: center; min-width: 60px;
}
.circolare-date .day { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.circolare-date .month { font-size: 0.65rem; font-weight: 700; color: var(--gray); letter-spacing: 0.15em; text-transform: uppercase; }
.circolare-date .year { font-size: 0.7rem; color: rgba(107,107,107,0.5); }

.circolare-body { flex: 1; }
.circolare-tag {
  display: inline-block; font-size: 0.6rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid rgba(192,57,43,0.3); padding: 0.15rem 0.5rem; margin-bottom: 0.5rem;
}
.circolare-body h3 {
  font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700;
  color: var(--slate); line-height: 1.35; margin-bottom: 0.4rem;
}
.circolare-body p { font-size: 0.85rem; color: var(--gray); line-height: 1.65; }

.circolare-action { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.btn-pdf {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: var(--white);
  padding: 0.6rem 1.2rem; font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  border: none; cursor: pointer; text-decoration: none; transition: background 0.2s;
  white-space: nowrap;
}
.btn-pdf:hover { background: #a93226; }
.btn-pdf svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

.circ-empty {
  text-align: center; padding: 5rem 2rem;
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.1rem; color: rgba(107,107,107,0.5);
}

.circ-banner {
  background: var(--gold); padding: 1.5rem 5%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.circ-banner p {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.1rem; color: var(--white); line-height: 1.4;
}
.circ-banner small {
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem;
  color: rgba(255,255,255,0.65); display: block; margin-top: 0.2rem;
}

/* 404 PAGE */
.page-404 {
  min-height: calc(100vh - 120px);
  background: var(--slate);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 5rem;
  position: relative; overflow: hidden;
}
.page-404::before {
  content: '404'; font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: 30vw; color: rgba(192,57,43,0.06);
  position: absolute; line-height: 1; user-select: none; pointer-events: none;
}
.page-404 .eyebrow { justify-content: center; color: var(--gold-light); }
.page-404 .eyebrow::before { background: var(--gold-light); }
.page-404 h1 {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white);
  line-height: 1.15; margin-bottom: 1.2rem; position: relative;
}
.page-404 p { font-size: 1rem; color: rgba(255,255,255,0.55); max-width: 480px; line-height: 1.8; margin-bottom: 2.5rem; position: relative; }
.page-404 .btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; position: relative; }



/* ═══════ TEAM PAGE ═══════ */
.team-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
.team-card { background: var(--white); border: 1px solid var(--border); padding: 2.5rem; position: relative; transition: border-color 0.3s; }
.team-card:hover { border-color: var(--gold); }
.team-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--gold); transition: height 0.4s; }
.team-card:hover::before { height: 100%; }
.team-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.team-card-area { font-size: 0.65rem; font-weight: 700; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.5rem; }
.team-card-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--slate); margin-bottom: 1rem; font-style: italic; }
.team-card-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.75; margin-bottom: 1.5rem; }
.team-card-contact { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.8rem; color: var(--gray); border-top: 1px solid var(--border); padding-top: 1rem; }
.team-card-contact span { display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 768px) { .team-cards-grid { grid-template-columns: 1fr; } }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.page.active .hero-content { animation: fadeUp 0.8s ease both; }
.page.active .hero-stats { animation: fadeUp 1s ease 0.3s both; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .studio-page-grid { grid-template-columns: 1fr; }
  .studio-sidebar { position: static; }
  .servizio-inner { grid-template-columns: 1fr; gap: 2rem; }
  .pilastri { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .pilastri, .cards-grid, .servizi-grid { grid-template-columns: 1fr; }
  .contatti-grid { grid-template-columns: 1fr; }
  .contatti-left, .contatti-right { padding: 3rem 1.5rem; }
  .studio-main { padding: 3rem 1.5rem; }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-copy { grid-column: 1 / -1; }
  .circolare-item { grid-template-columns: 1fr; gap: 1rem; }
  .circolare-action { align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* PAGINE LEGALI */
.legal { max-width: 860px; margin: 0 auto; padding: 4rem 5% 5rem; }
.legal h2 { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--slate); margin: 2.5rem 0 0.9rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 0.72rem; font-weight: 700; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; margin: 1.8rem 0 0.7rem; }
.legal p, .legal li { font-size: 0.95rem; color: var(--slate); line-height: 1.8; }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.2rem; }
.legal li { margin-bottom: 0.45rem; }
.legal a { color: var(--gold); }
.legal-meta { font-size: 0.8rem !important; color: var(--gray) !important; margin-bottom: 2rem !important; }
.ph { background: #fff3a8; color: #5c4a00; padding: 0 0.3em; border-radius: 2px; font-weight: 600; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
@media (max-width: 768px) { .spec-grid { grid-template-columns: 1fr; } .nav-cta { padding: 0.5rem 0.8rem; font-size: 0.7rem; } .nav-logo .logo-studio, .nav-logo .logo-stoppa { font-size: 1.15rem; } }
.serv-card-special { grid-column: 1 / -1; }

/* ═════════ v7: pagine separate, logo, contatti, mappa, accessibilità ═════════ */
html { scroll-padding-top: 120px; }
.form-trap { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-esito { margin-top:1rem; padding:.9rem 1rem; font-size:.9rem; line-height:1.5; border-left:3px solid; }
.form-esito.ok { background:#e8f5ec; color:#14532d; border-color:#1f9d55; }
.form-esito.err { background:#fdecea; color:#7a1c14; border-color:#b3261e; }
.amp { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 1.12em; line-height: 1; padding: 0 .06em; }
.circolari-filter-bar { justify-content: flex-end; }
.studio-sidebar .img-ph:has(img.carica)::after { display: none; }
.studio-sidebar { top: 110px; }
.page { display: block; padding-top: 110px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--slate-deep); color: #fff; padding: .7rem 1rem; z-index: 300; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
main:focus { outline: none; }
a.btn-primary, a.btn-outline { display: inline-block; text-decoration: none; text-align: center; }
a.nav-cta, a.tab-btn, a.serv-link, a.team-link { text-decoration: none; }
a.nav-cta { display: inline-block; }
a.tab-btn { display: inline-block; }
.nav-logo { flex-direction: row; align-items: center; gap: .8rem; text-decoration: none; }
.nav-mark { width: 46px; height: 46px; border-radius: 11px; box-shadow: 0 2px 8px rgba(178,41,41,.28); display: block; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo .logo-top { display: flex; align-items: baseline; gap: .25em; }
.nav-logo .logo-line { display: block; }
h2.serv-title { margin: 0; }
.hero-bg-img .hero-photo, .team-img-placeholder img, .img-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg-img .hero-photo { object-position: center 35%; }
.team-img-placeholder::before, .img-ph::before { z-index: 2; }
.brand-card { background: linear-gradient(145deg, #3a3a3a, #1a1a1a); border: 1px solid rgba(255,255,255,.08); padding: 2.2rem; margin-bottom: 1.5rem; display: flex; justify-content: center; position: relative; }
.brand-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); }
.brand-card img { width: 150px; height: 150px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.45); display: block; }
.studio-contact .sc-row { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .75rem; }
.studio-contact svg, .ci-icon svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--gold-light); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.ci-icon { width: 22px; }
.ci-item { margin-bottom: 1.2rem; }
.f-mark { width: 64px; height: 64px; border-radius: 14px; display: block; margin-bottom: 1rem; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.footer-brand p a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-brand p a:hover { color: var(--gold-light); }
.footer-copy a { color: rgba(255,255,255,.45); }
.galleria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.galleria-grid figure { aspect-ratio: 4/3; background: var(--border); overflow: hidden; }
.galleria-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg-img { background-image: url('https://images.pexels.com/photos/1181406/pexels-photo-1181406.jpeg?auto=compress&cs=tinysrgb&w=1600'), linear-gradient(135deg, #3b3b3b 0%, #1a1a1a 100%); }
.galleria-grid figure.vuota { display: none; }
.valore { display: grid; grid-template-columns: 11.5rem 1fr; gap: 1.2rem; align-items: baseline; }
.valore-label { min-width: 0; }
@media (max-width: 640px) { .valore { grid-template-columns: 1fr; gap: .25rem; } }
.team-img-placeholder:has(img.carica)::after, .img-ph:has(img.carica)::after { display: none; }
img[data-slot] { opacity: 0; transition: opacity .5s; }
img[data-slot].carica { opacity: 1; }
.map-section { background: var(--slate-deep); }
.map-box { min-height: 420px; position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2e2e2e, #1a1a1a); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { text-align: center; padding: 3rem 1.5rem; max-width: 560px; }
.map-consent h2 { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.8rem; margin: .8rem 0 .4rem; }
.map-consent p { color: rgba(255,255,255,.7); line-height: 1.7; }
.map-consent .map-note { font-size: .78rem; color: rgba(255,255,255,.45); margin: 1rem 0 1.6rem; }
.map-consent .map-note a { color: var(--gold-light); }
.map-pin svg { width: 36px; height: 36px; stroke: var(--gold-light); fill: none; stroke-width: 1.6; }
.map-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.map-actions .btn-primary { border: none; cursor: pointer; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; background: #1f9d55; color: #fff; text-decoration: none; display: flex; align-items: center; gap: .5rem; padding: .75rem 1.1rem .75rem .9rem; border-radius: 999px; font-weight: 600; font-size: .85rem; box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.wa-float svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-float:hover { background: #17824a; }
.btn-pdf { text-decoration: none; }
@media (max-width: 768px) {
  .galleria-grid { grid-template-columns: 1fr; }
  .nav-mark { width: 38px; height: 38px; }
  .nav-logo { gap: .55rem; }
  .wa-float span { display: none; }
  .wa-float { padding: .85rem; }
  .map-box { min-height: 460px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
