/* ============================================================
   Silvia Magni — www6 · "Energia professionale"
   Palette viva: teal, corallo, giallo sole, indaco profondo.
   Nessuna dipendenza, nessun build step.
   ============================================================ */

:root{
  --teal:        #0aa6a0;
  --teal-dark:   #067d79;
  --teal-soft:   #d9f4f2;
  --coral:       #ff6b57;
  --coral-dark:  #e04f3c;
  --coral-soft:  #ffe6e1;
  --sun:         #ffc145;
  --sun-soft:    #fff3d6;
  --indigo:      #2f2a63;
  --indigo-deep: #232050;
  --lilac-soft:  #ece9ff;
  --ink:         #26243d;
  --ink-soft:    #5b5876;
  --paper:       #fffdf8;
  --white:       #ffffff;

  --radius-lg:   28px;
  --radius-md:   18px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(38,36,61,.08);
  --shadow-md: 0 10px 30px rgba(38,36,61,.12);
  --shadow-pop: 0 14px 40px rgba(10,166,160,.22);

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-brand: "Outfit", system-ui, sans-serif;

  --container: 1120px;
}

/* ============================================================
   STYLE 2 — Elsie Swash Caps per logo e titoli
   ============================================================ */
html[data-theme="style2"] {
  --font-brand: "Elsie Swash Caps", "Georgia", serif;
}

html[data-theme="style2"] .brand strong {
  font-family: "Elsie Swash Caps", "Georgia", serif;
  font-weight: 900;
  font-size: 1.45rem;
}

html[data-theme="style2"] h1,
html[data-theme="style2"] h2,
html[data-theme="style2"] h3,
html[data-theme="style2"] .section-head h2,
html[data-theme="style2"] .card h3,
html[data-theme="style2"] .service-block h2 {
  font-family: "Elsie Swash Caps", "Georgia", serif;
  font-weight: 400;
}

/* ============================================================
   STYLE 3 — "Salvia": palette botanica calda
   (verde bosco, terracotta, ambra) su fondo crema,
   titoli in serif editoriale Fraunces.
   ============================================================ */
html[data-theme="style3"] {
  --teal:        #3f7d5c;
  --teal-dark:   #2f6046;
  --teal-soft:   #e6efe9;
  --coral:       #c96a4a;
  --coral-dark:  #a8543a;
  --coral-soft:  #f8e8e0;
  --sun:         #d9a24f;
  --sun-soft:    #faf0dc;
  --indigo:      #37403a;
  --indigo-deep: #2a312c;
  --lilac-soft:  #eae6de;
  --ink:         #35322c;
  --ink-soft:    #6f6a60;
  --paper:       #fbf8f1;
  --white:       #ffffff;

  --shadow-pop: 0 14px 40px rgba(63,125,92,.22);

  --font-head:  "Fraunces", "Georgia", serif;
  --font-body:  "Inter", system-ui, sans-serif;
  --font-brand: "Fraunces", "Georgia", serif;
}

/* Peso "caldo" per i titoli del tema Salvia */
html[data-theme="style3"] h1,
html[data-theme="style3"] h2,
html[data-theme="style3"] h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--font-body);
  font-size:1.0625rem;
  line-height:1.65;
  color:var(--ink);
  background:url("assets/doodles.svg") 0 0/340px 340px, var(--paper);
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }

h1,h2,h3,h4{
  font-family:var(--font-head);
  line-height:1.15;
  color:var(--indigo);
  margin:0 0 .6em;
  letter-spacing:-.01em;
}
h1{ font-size:clamp(2.3rem, 5.2vw, 3.6rem); font-weight:800; }
h2{ font-size:clamp(1.7rem, 3.4vw, 2.4rem); font-weight:800; }
h3{ font-size:1.25rem; font-weight:700; }
p{ margin:0 0 1em; }
a{ color:var(--teal-dark); }

.container{
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:1.25rem;
}
.container.narrow{ max-width:800px; }

/* Utility */
.mt-lg{ margin-top:2.2rem; }
.section.no-top{ padding-top:0; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--indigo); color:#fff; padding:.6rem 1rem;
  border-radius:0 0 var(--radius-md) 0; z-index:100;
}
.skip-link:focus{ left:0; }

/* Evidenziatore "marker" nei titoli */
em.hl, .hl{
  font-style:normal;
  background:linear-gradient(120deg, transparent 0 4%, var(--sun) 4% 96%, transparent 96%);
  background-size:100% .45em;
  background-position:0 88%;
  background-repeat:no-repeat;
  padding-inline:.05em;
}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,253,248,.92);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border-bottom:3px solid transparent;
  border-image:linear-gradient(90deg, var(--teal), var(--sun), var(--coral)) 1;
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding-block:.8rem;
}
.brand{
  display:flex; flex-direction:column; text-decoration:none; line-height:1.15;
}
.brand strong{
  font-family:var(--font-brand); font-size:1.3rem; font-weight:800; color:var(--indigo);
}
.brand-dot{ color:var(--coral); font-weight:800; }
.brand-role{ font-size:.78rem; color:var(--ink-soft); letter-spacing:.04em; text-transform:uppercase; }

.main-nav{ display:flex; align-items:center; gap:1.1rem; }
.main-nav a{
  text-decoration:none; color:var(--ink); font-weight:600; font-size:.95rem;
  padding:.25rem .1rem; border-bottom:3px solid transparent;
}
.main-nav a:hover{ border-bottom-color:var(--sun); }
.main-nav a[aria-current="page"]{ border-bottom-color:var(--coral); color:var(--indigo); }

.menu-toggle{
  display:none; flex-direction:column; gap:5px;
  background:none; border:0; cursor:pointer; padding:.5rem;
}
.menu-toggle span:not(.sr-only){
  width:26px; height:3px; border-radius:2px; background:var(--indigo);
  transition:transform .25s, opacity .25s;
}

/* ---------- Bottoni ---------- */
.button{
  display:inline-flex; align-items:center; gap:.5rem;
  background:var(--coral); color:#fff; text-decoration:none;
  font-family:var(--font-head); font-weight:700; font-size:1rem;
  padding:.85rem 1.6rem; border:0; border-radius:var(--radius-pill);
  box-shadow:0 6px 18px rgba(255,107,87,.35);
  transition:transform .15s, box-shadow .15s, background .15s;
  cursor:pointer;
}
.button:hover{ transform:translateY(-2px); background:var(--coral-dark); }
.button.teal{ background:var(--teal); box-shadow:0 6px 18px rgba(10,166,160,.35); }
.button.teal:hover{ background:var(--teal-dark); }
.button.ghost{
  background:transparent; color:var(--indigo);
  border:2px solid var(--indigo); box-shadow:none;
}
.button.ghost:hover{ background:var(--indigo); color:#fff; }
.button.small{ padding:.5rem 1.1rem; font-size:.9rem; }

/* ---------- Etichette / eyebrow ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:.5rem;
  font-family:var(--font-head); font-weight:700; font-size:.82rem;
  letter-spacing:.08em; text-transform:uppercase;
  color:var(--teal-dark);
  background:var(--teal-soft);
  padding:.35rem .9rem; border-radius:var(--radius-pill);
  margin:0 0 1rem;
}
.eyebrow.coral{ color:var(--coral-dark); background:var(--coral-soft); }
.eyebrow.sun{ color:#8a6100; background:var(--sun-soft); }

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background:
    url("assets/doodles.svg") 0 0/340px 340px,
    radial-gradient(700px 420px at 88% -10%, var(--sun-soft) 0%, transparent 65%),
    radial-gradient(600px 480px at -8% 30%, var(--teal-soft) 0%, transparent 60%),
    var(--paper);
  padding-block:4.5rem 5.5rem;
}
.hero-grid{
  display:grid; grid-template-columns:1.15fr .85fr; gap:3rem; align-items:center;
}
.hero .lead{
  font-size:1.2rem; color:var(--ink-soft); max-width:34em;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:.9rem; margin-block:1.6rem 1rem; }
.hero-note{
  font-size:.92rem; color:var(--ink-soft);
  display:flex; gap:.5rem; align-items:flex-start; max-width:32em;
}
.hero-note svg{ flex:none; margin-top:.15em; }

/* Ritratto con cornice "blob" */
.hero-figure{ position:relative; justify-self:center; }
.portrait-blob{
  position:relative;
  width:min(360px, 80vw);
  aspect-ratio:4/5;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-pop);
  outline:6px solid var(--white);
}
.portrait-blob img{ width:100%; height:100%; object-fit:cover; }
.hero-figure::before{
  content:""; position:absolute; inset:-18px -22px auto auto;
  width:110px; height:110px; z-index:-1;
  background:radial-gradient(circle, var(--sun) 3px, transparent 3.5px);
  background-size:18px 18px;
}
.hero-figure::after{
  content:""; position:absolute; left:-34px; bottom:-26px; z-index:-1;
  width:150px; height:150px; border-radius:50%;
  background:var(--coral-soft);
}
.badge-sticker{
  position:absolute; right:-14px; bottom:22px;
  background:var(--white); border-radius:var(--radius-md);
  box-shadow:var(--shadow-md);
  padding:.75rem 1rem; max-width:230px;
  font-size:.83rem; line-height:1.4;
  border-left:5px solid var(--teal);
  transform:rotate(2deg);
}
.badge-sticker strong{ color:var(--indigo); font-family:var(--font-head); }

/* Onda di separazione */
.wave{ display:block; width:100%; height:70px; margin-bottom:-1px; }

/* ---------- Sezioni ---------- */
.section{ padding-block:4.5rem; }
.section.tinted{ background:url("assets/doodles.svg") 170px 120px/340px 340px, linear-gradient(180deg, var(--teal-soft), #f2fbfa 70%); }
.section.deep{
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(255,193,69,.14) 0%, transparent 60%),
    var(--indigo-deep);
  color:#e9e7ff;
}
.section.deep h2, .section.deep h3{ color:#fff; }
.section.deep p{ color:#c9c6ec; }

.section-head{ max-width:46em; margin-bottom:2.5rem; }
.section-head.center{ margin-inline:auto; text-align:center; }
.muted{ color:var(--ink-soft); }

/* ---------- Card servizi ---------- */
.card-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:1.5rem;
}
.card{
  position:relative;
  background:var(--white); border-radius:var(--radius-lg);
  padding:2rem 1.6rem 1.6rem;
  box-shadow:var(--shadow-sm);
  border-top:6px solid var(--card-color, var(--teal));
  transition:transform .2s, box-shadow .2s;
  display:flex; flex-direction:column;
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.card.c-teal{ --card-color:var(--teal); }
.card.c-coral{ --card-color:var(--coral); }
.card.c-sun{ --card-color:var(--sun); }
.card p{ color:var(--ink-soft); flex:1; }

.icon-chip{
  width:58px; height:58px; border-radius:18px;
  display:grid; place-items:center; margin-bottom:1.1rem;
  background:color-mix(in srgb, var(--card-color) 16%, white);
  color:var(--card-color);
}
.icon-chip svg{ width:30px; height:30px; }

.card-link{
  font-family:var(--font-head); font-weight:700; text-decoration:none;
  color:var(--card-color); font-size:.95rem;
}
.card-link:hover{ text-decoration:underline; }

/* ---------- Pillole valori ---------- */
.value-strip{
  display:flex; flex-wrap:wrap; gap:.7rem; justify-content:center;
  margin-top:2rem;
}
.pill{
  display:inline-flex; align-items:center; gap:.45rem;
  background:var(--white); border:2px solid var(--teal-soft);
  border-radius:var(--radius-pill); padding:.45rem 1rem;
  font-weight:600; font-size:.92rem; color:var(--indigo);
  box-shadow:var(--shadow-sm);
}
.pill svg{ width:18px; height:18px; color:var(--coral); }

/* ---------- Metodo: passi numerati ---------- */
.steps{
  counter-reset:step;
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(4, 1fr); gap:1.4rem;
}
.steps li{
  counter-increment:step;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-lg); padding:1.6rem 1.3rem;
  position:relative;
}
.steps li::before{
  content:counter(step, decimal-leading-zero);
  display:inline-block;
  font-family:var(--font-head); font-weight:800; font-size:1.05rem;
  color:var(--indigo-deep);
  background:linear-gradient(135deg, var(--sun), var(--coral));
  border-radius:12px; padding:.25rem .65rem; margin-bottom:.9rem;
}
.steps h3{ font-size:1.08rem; }

/* ---------- Quote band ---------- */
.quote-band{
  text-align:center; max-width:52em; margin-inline:auto;
  position:relative; padding-block:.5rem;
}
.quote-band blockquote{
  margin:0; font-family:var(--font-head); font-weight:600;
  font-size:clamp(1.25rem, 2.6vw, 1.7rem); line-height:1.45; color:var(--indigo);
}
.quote-band .quote-mark{
  font-size:4rem; line-height:1; color:var(--coral);
  font-family:var(--font-head); display:block; margin-bottom:-.5rem;
}
.quote-band .who{
  margin-top:1.2rem; font-weight:700; color:var(--teal-dark);
  font-size:.95rem; letter-spacing:.03em;
}

/* ---------- Foto strip ---------- */
.photo-strip{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:1.2rem;
}
.photo-strip figure{
  margin:0; border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); position:relative;
  aspect-ratio:4/3; background:var(--teal-soft);
}
.photo-strip img{ width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.photo-strip figure:hover img{ transform:scale(1.04); }
.photo-strip figcaption{
  position:absolute; left:.8rem; bottom:.8rem;
  background:rgba(255,255,255,.92); color:var(--indigo);
  font-family:var(--font-head); font-weight:700; font-size:.85rem;
  padding:.35rem .8rem; border-radius:var(--radius-pill);
}

/* ---------- Teaser approfondimenti ---------- */
.teaser-band{
  background:
    radial-gradient(400px 260px at 8% 110%, rgba(255,107,87,.12) 0%, transparent 60%),
    var(--white);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  padding:2.6rem 2.4rem;
  display:grid; grid-template-columns:1.2fr .8fr; gap:2rem; align-items:center;
  border:2px dashed var(--sun);
}
.teaser-topics{ display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1rem; }
.teaser-topics span{
  background:var(--lilac-soft); color:var(--indigo);
  font-size:.85rem; font-weight:600;
  padding:.3rem .85rem; border-radius:var(--radius-pill);
}
.teaser-img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:20px; box-shadow:var(--shadow-md); }

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(120deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius:var(--radius-lg);
  color:#fff; padding:2.8rem 2.6rem;
  display:flex; align-items:center; justify-content:space-between; gap:2rem;
  box-shadow:var(--shadow-pop);
  position:relative; overflow:hidden;
}
.cta-band::before{
  content:""; position:absolute; right:-40px; top:-60px;
  width:220px; height:220px; border-radius:50%;
  background:rgba(255,193,69,.25);
}
.cta-band h2{ color:#fff; margin-bottom:.4em; }
.cta-band p{ color:#d8f4f2; margin:0; max-width:34em; }
.cta-band .button{ background:var(--sun); color:var(--indigo-deep); box-shadow:0 6px 18px rgba(0,0,0,.2); flex:none; }
.cta-band .button:hover{ background:#ffd170; }

/* ---------- Pagine interne ---------- */
.page-hero{
  background:
    url("assets/doodles.svg") 0 0/340px 340px,
    radial-gradient(600px 360px at 100% 0%, var(--coral-soft) 0%, transparent 60%),
    radial-gradient(500px 300px at 0% 100%, var(--teal-soft) 0%, transparent 60%),
    var(--paper);
  padding-block:3.6rem 3rem;
}
.page-hero .lead{ font-size:1.15rem; color:var(--ink-soft); max-width:40em; }

.prose{ max-width:44em; }
.prose h2{ margin-top:2em; }
.prose ul{ padding-left:1.2em; }
.prose li{ margin-bottom:.4em; }

.split{
  display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:start;
}
.split .side-img{
  border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-md);
  position:sticky; top:6rem;
}
.split .side-img img{ width:100%; height:auto; }

/* Box informativi colorati */
.note-box{
  border-radius:var(--radius-md); padding:1.3rem 1.5rem; margin-block:1.6rem;
  display:flex; gap:.9rem; align-items:flex-start;
  background:var(--sun-soft); border-left:5px solid var(--sun);
}
.note-box.teal{ background:var(--teal-soft); border-left-color:var(--teal); }
.note-box.coral{ background:var(--coral-soft); border-left-color:var(--coral); }
.note-box.flush{ margin-bottom:0; }
.note-box svg{ flex:none; width:24px; height:24px; margin-top:.15em; color:var(--indigo); }
.note-box p{ margin:0; font-size:.97rem; }

/* ---------- Servizi: blocchi dettagliati ---------- */
.service-block{
  display:grid; grid-template-columns:.9fr 1.1fr; gap:2.5rem;
  align-items:center; padding-block:2.6rem;
  border-bottom:2px dashed var(--teal-soft);
}
.service-block:last-of-type{ border-bottom:0; }
.service-block:nth-child(even){ direction:rtl; }
.service-block:nth-child(even) > *{ direction:ltr; }
.service-block .img-wrap{
  border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-md);
  aspect-ratio:5/4;
}
.service-block .img-wrap img{ width:100%; height:100%; object-fit:cover; }
.service-block ul{
  list-style:none; padding:0; margin:1rem 0;
}
.service-block ul li{
  padding-left:1.9em; position:relative; margin-bottom:.55em;
}
.service-block ul li::before{
  content:"✓"; position:absolute; left:0; top:0;
  width:1.35em; height:1.35em; border-radius:50%;
  background:var(--teal-soft); color:var(--teal-dark);
  font-weight:800; font-size:.85em;
  display:grid; place-items:center;
}

/* ---------- FAQ ---------- */
details.faq{
  background:var(--white); border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm); margin-bottom:.9rem;
  border-left:5px solid var(--teal);
}
details.faq summary{
  cursor:pointer; font-family:var(--font-head); font-weight:700;
  color:var(--indigo); padding:1.1rem 1.4rem; list-style:none;
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
}
details.faq summary::-webkit-details-marker{ display:none; }
details.faq summary::after{
  content:"+"; font-size:1.5rem; color:var(--coral); font-weight:700; flex:none;
}
details.faq[open] summary::after{ content:"–"; }
details.faq .faq-body{ padding:0 1.4rem 1.2rem; color:var(--ink-soft); }

/* ---------- Contatti ---------- */
.contact-grid{
  display:grid; grid-template-columns:.9fr 1.1fr; gap:3rem; align-items:start;
}
.contact-card{
  background:var(--white); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md); padding:2rem;
  border-top:6px solid var(--coral);
}
.contact-list{ list-style:none; padding:0; margin:0; }
.contact-list li{
  display:flex; gap:.8rem; align-items:flex-start; margin-bottom:1.1rem;
}
.contact-list svg{ flex:none; width:22px; height:22px; color:var(--teal); margin-top:.2em; }

form .field{ margin-bottom:1.2rem; }
form label{
  display:block; font-family:var(--font-head); font-weight:700;
  font-size:.95rem; color:var(--indigo); margin-bottom:.35rem;
}
form input, form textarea, form select{
  width:100%; font:inherit; color:var(--ink);
  border:2px solid #e4e1f0; border-radius:var(--radius-md);
  padding:.75rem 1rem; background:var(--white);
  transition:border-color .15s;
}
form input:focus, form textarea:focus, form select:focus{
  outline:none; border-color:var(--teal);
}
form .consent{ display:flex; gap:.6rem; align-items:flex-start; font-size:.9rem; color:var(--ink-soft); }
form .consent input{ width:auto; margin-top:.25em; }
form .consent label{ font-family:var(--font-body); font-weight:400; }
.form-feedback{ display:none; color:var(--coral-dark); font-weight:600; }
.form-note{ font-size:.85rem; margin-top:.8rem; }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--indigo-deep); color:#c9c6ec;
  padding-block:3.5rem 1.5rem; margin-top:4rem;
  border-top:6px solid transparent;
  border-image:linear-gradient(90deg, var(--teal), var(--sun), var(--coral)) 1;
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:2.5rem;
  padding-bottom:2rem; border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-brand{ font-family:var(--font-head); font-weight:800; font-size:1.25rem; color:#fff; margin-bottom:.4rem; }
.footer-brand .brand-dot{ color:var(--coral); }
.site-footer h4{ color:var(--sun); font-size:.95rem; text-transform:uppercase; letter-spacing:.06em; }
.site-footer ul{ list-style:none; padding:0; margin:0; }
.site-footer li{ margin-bottom:.5rem; }
.site-footer a{ color:#e9e7ff; text-decoration:none; }
.site-footer a:hover{ color:var(--sun); }
.footer-meta{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem;
  padding-top:1.4rem; font-size:.85rem; color:#8a87b8;
}

/* ---------- Reveal animations ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- Theme switcher ---------- */
.theme-switcher{
  position:fixed; bottom:1.5rem; right:1.5rem; z-index:999;
  display:flex; flex-direction:column; align-items:flex-end; gap:.5rem;
}
.theme-trigger{
  width:48px; height:48px; border-radius:50%;
  background:var(--indigo); color:#fff; border:0; cursor:pointer;
  display:grid; place-items:center;
  box-shadow:var(--shadow-md);
  transition:transform .25s, background .25s;
  font-size:1.3rem;
}
.theme-trigger:hover{ transform:scale(1.08); background:var(--teal); }
.theme-trigger:focus-visible{ outline:3px solid var(--coral); outline-offset:3px; }

.theme-panel{
  display:none; flex-direction:column; gap:.65rem;
  background:var(--white); border-radius:var(--radius-md);
  padding:1rem; box-shadow:var(--shadow-md);
  border:1px solid var(--teal-soft);
  animation:panelIn .25s ease;
}
.theme-panel.open{ display:flex; }
@keyframes panelIn{
  from{ opacity:0; transform:translateY(8px); }
  to{ opacity:1; transform:none; }
}

.theme-btn{
  display:flex; align-items:center; gap:.7rem;
  background:none; border:2px solid transparent; border-radius:var(--radius-pill);
  padding:.55rem .9rem; cursor:pointer; font-family:var(--font-head);
  font-size:.88rem; font-weight:600; color:var(--indigo);
  transition:border-color .2s, background .2s;
  white-space:nowrap;
}
.theme-btn:hover{ background:var(--teal-soft); }
.theme-btn.active{ border-color:var(--teal); background:var(--teal-soft); }

.theme-dot{
  width:22px; height:22px; border-radius:50%; flex:none;
  border:2px solid rgba(0,0,0,.12);
}
.theme-dot.t1{ background:linear-gradient(135deg, var(--teal), var(--sun)); }
.theme-dot.t2{ background:linear-gradient(135deg, var(--teal), var(--coral)); }
.theme-dot.t3{ background:linear-gradient(135deg, var(--coral), var(--sun)); }

.theme-label{ font-size:.7rem; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.06em; margin-bottom:.15rem; }

/* ---------- Responsive ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-figure{ order:-1; }
  .card-grid{ grid-template-columns:1fr 1fr; }
  .steps{ grid-template-columns:1fr 1fr; }
  .photo-strip{ grid-template-columns:1fr 1fr; }
  .teaser-band{ grid-template-columns:1fr; }
  .split, .contact-grid{ grid-template-columns:1fr; }
  .split .side-img{ position:static; }
  .service-block{ grid-template-columns:1fr; }
  .service-block:nth-child(even){ direction:ltr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width: 680px){
  .menu-toggle{ display:flex; }
  .main-nav{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--white); box-shadow:var(--shadow-md);
    padding:1rem 1.25rem;
  }
  .main-nav.open{ display:flex; }
  .main-nav a{ padding:.7rem 0; border-bottom:1px solid #eee; }
  .card-grid, .steps, .photo-strip, .footer-grid{ grid-template-columns:1fr; }
  .cta-band{ flex-direction:column; text-align:center; }
  .badge-sticker{ right:0; }
  .theme-switcher{ bottom:1rem; right:1rem; }
}

/* ---------- Approfondimenti: elenco articoli ---------- */
.post-grid{
  display:grid; grid-template-columns:repeat(2, 1fr); gap:1.5rem;
}
.post-card{
  background:var(--white); border-radius:var(--radius-lg);
  padding:1.9rem 1.8rem 1.7rem; box-shadow:var(--shadow-sm);
  border-top:6px solid var(--teal);
  display:flex; flex-direction:column; gap:.9rem;
  transition:transform .2s, box-shadow .2s;
}
.post-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.post-card.c-coral{ border-top-color:var(--coral); }
.post-card h3{ margin:0; font-size:1.3rem; line-height:1.3; }
.post-card h3 a{ color:var(--indigo); text-decoration:none; }
.post-card h3 a:hover{ color:var(--teal-dark); }
.post-card p{ color:var(--ink-soft); margin:0; }
.read-more{
  margin-top:auto; align-self:flex-start;
  font-family:var(--font-head); font-weight:700; font-size:.95rem;
  color:var(--coral-dark); text-decoration:none;
}
.read-more:hover{ text-decoration:underline; }

.tag{
  align-self:flex-start;
  font-family:var(--font-head); font-weight:700; font-size:.78rem;
  letter-spacing:.06em; text-transform:uppercase;
  color:var(--teal-dark); background:var(--teal-soft);
  padding:.3rem .85rem; border-radius:var(--radius-pill); margin:0;
}
.tag.coral{ color:var(--coral-dark); background:var(--coral-soft); }

/* ---------- Articolo ---------- */
.article-hero{
  background:
    url("assets/doodles.svg") 0 0/340px 340px,
    radial-gradient(600px 360px at 100% 0%, var(--teal-soft) 0%, transparent 60%),
    radial-gradient(500px 300px at 0% 100%, var(--coral-soft) 0%, transparent 60%),
    var(--paper);
  padding-block:3.4rem 2.4rem;
}
.article-hero .container{ max-width:840px; }
.article-hero h1{ margin:0 0 .7em; }
.article-meta{
  color:var(--ink-soft); font-size:.95rem;
  letter-spacing:.02em; margin:0;
}

.article-body{
  max-width:760px; margin-inline:auto;
  font-size:1.1rem; line-height:1.85; color:var(--ink);
  padding-block:2.4rem;
}
.article-body h2{
  margin:2.4em 0 .8em;
  font-size:1.6rem; line-height:1.25;
  padding-left:1rem; border-left:5px solid var(--coral);
}
.article-body p{ margin:0 0 1.35em; }
/* Capolettera editoriale sul primo paragrafo */
.article-body > p:first-of-type::first-letter{
  font-family:var(--font-brand);
  font-weight:800; font-size:3.1em; line-height:.85;
  float:left; padding-right:.14em; color:var(--coral);
}

.pull-quote{
  margin:2.4rem 0; padding:1.7rem 1.9rem;
  background:var(--sun-soft); border-left:6px solid var(--sun);
  border-radius:0 var(--radius-md) var(--radius-md) 0;
  font-family:var(--font-head); font-weight:600;
  font-size:1.28rem; line-height:1.5; color:var(--indigo);
}
.pull-quote p{ margin:0; }

.article-footer{
  max-width:760px; margin-inline:auto; padding-bottom:2.6rem;
  display:flex; flex-wrap:wrap; gap:.9rem; align-items:center;
}
@media (max-width: 680px){
  .post-grid{ grid-template-columns:1fr; }
  .article-body{ font-size:1.05rem; }
}
