/* =================================================================
   Miriam Imbrogno Makeup Artist — main.css
   Design system globale: variabili, reset, typography, grid, utility
   Mobile-first. CSS custom puro, nessun framework.
   ================================================================= */

/* -----------------------------------------------------------------
   1. DESIGN TOKENS — CSS Variables
   ----------------------------------------------------------------- */
:root {
  /* --- Colori: palette brand reale (nude / cipria caldo) ---
     Ripresa dal vecchio sito (tema "sana"):
     accento #dfba9f · testo #141414 · sfondo #f9f1ec */
  --color-nude:        #dfba9f;   /* nude/cipria — accento principale del brand */
  --color-nude-dark:   #c79873;   /* nude scuro per hover/contrasto */
  --color-nude-light:  #efddcd;   /* nude chiaro / accenti tenui */
  --color-rose:        #b98a6a;   /* terracotta/rosé caldo per gradienti */

  --color-cream:       #f9f1ec;   /* sfondo blush/crema chiaro (dal sito) */
  --color-sand:        #f3e7dd;   /* sezioni alternate, leggermente più calde */
  --color-ink:         #141414;   /* testo principale (quasi-nero, dal sito) */
  --color-ink-soft:    #4a4441;   /* testo secondario */
  --color-muted:       #8a7f78;   /* testo tenue / caption */

  --color-white:       #ffffff;
  --color-black:       #0e0e0e;

  /* Ruoli semantici */
  --bg-body:           var(--color-cream);
  --bg-alt:            var(--color-sand);
  --bg-dark:           var(--color-ink);
  --text-base:         var(--color-ink);
  --text-soft:         var(--color-ink-soft);
  --accent:            var(--color-nude);
  --accent-hover:      var(--color-nude-dark);

  /* Overlay (hero, immagini) */
  --overlay-dark:      rgba(20, 20, 20, 0.45);
  --overlay-gold:      rgba(223, 186, 159, 0.20);

  /* --- Tipografia --- */
  /* Font reali del brand: Prata (titoli) + Ubuntu (testo) + script decorativo */
  --font-serif:  "Prata", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:   "Ubuntu", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-script: "Mrs Saint Delafield", "Brush Script MT", cursive;

  --fs-base:     1rem;        /* 16px */
  --fs-sm:       0.875rem;    /* 14px */
  --fs-xs:       0.75rem;     /* 12px */
  --fs-lg:       1.125rem;    /* 18px */
  --fs-xl:       1.375rem;    /* 22px */
  --fs-h3:       1.7rem;      /* ~27px */
  --fs-h2:       2.15rem;     /* ~34px */
  --fs-h1:       2.7rem;      /* ~43px */
  --fs-hero:     clamp(2.5rem, 9vw, 3.4rem);   /* fluido su mobile */

  --lh-tight:    1.08;        /* display editoriale: righe serrate */
  --lh-base:     1.65;
  --ls-wide:     0.22em;      /* letter-spacing maiuscoletti (editoriale) */
  --ls-display:  -0.015em;    /* tracking negativo per i grandi titoli Prata */

  /* --- Spacing scale (rem) --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;

  /* --- Layout --- */
  --container-max:   1200px;
  --container-pad:   1.25rem;
  --radius-sm:       4px;
  --radius:          8px;
  --radius-lg:       16px;
  --radius-pill:     999px;

  /* --- Ombre --- */
  --shadow-sm:   0 1px 3px rgba(43, 38, 34, 0.08);
  --shadow:      0 6px 20px rgba(43, 38, 34, 0.10);
  --shadow-lg:   0 16px 40px rgba(43, 38, 34, 0.16);

  /* --- Transizioni --- */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --dur:         0.3s;

  /* --- Z-index scale --- */
  --z-navbar:    1000;
  --z-overlay:   1050;
  --z-modal:     1100;
}

/* Breakpoint di riferimento (per documentazione — usati nelle @media):
   sm: 480px  |  md: 768px  |  lg: 1024px  |  xl: 1200px */

/* -----------------------------------------------------------------
   2. RESET CSS MODERNO
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;   /* clippa il menu off-canvas (fixed) a livello viewport */
}

body {
  min-height: 100vh;
  overflow-x: hidden;   /* evita lo scroll orizzontale del menu off-canvas */
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: none; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -----------------------------------------------------------------
   3. TYPOGRAPHY BASE
   ----------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--text-base);
  background-color: var(--bg-body);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;            /* Prata è disponibile solo in peso 400 */
  line-height: var(--lh-tight);
  color: var(--text-base);
}

h1 { font-size: var(--fs-h1); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-display); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-xl); }

p { color: var(--text-soft); }
p + p { margin-top: var(--space-4); }

a { transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-hover); }

strong { color: var(--text-base); font-weight: 600; }

/* Occhiello / sopratitolo in maiuscoletto, con filetto editoriale */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.6;
}

/* Desktop type scale */
@media (min-width: 768px) {
  :root {
    --fs-h1:   3.6rem;     /* ~58px */
    --fs-h2:   3rem;       /* 48px */
    --fs-hero: 5.25rem;    /* 84px — display d'impatto */
  }
}

/* -----------------------------------------------------------------
   4. LAYOUT — Container & Section
   ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow { max-width: 800px; }
.container--wide   { max-width: 1400px; }

.section {
  padding-block: var(--space-8);
}
@media (min-width: 768px) {
  .section { padding-block: var(--space-9); }
}

.section--alt  { background-color: var(--bg-alt); }
.section--dark {
  background-color: var(--bg-dark);
  color: var(--color-cream);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-cream); }
.section--dark p { color: rgba(250, 246, 239, 0.82); }
.section--dark .section-head p { color: rgba(250, 246, 239, 0.72); }

/* Intestazione di sezione centrata */
.section-head {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.section-head p { margin-top: var(--space-4); font-size: var(--fs-lg); color: var(--text-soft); }
/* occhiello centrato: filetto su entrambi i lati */
.section-head .eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.6;
}

/* -----------------------------------------------------------------
   5. GRID SYSTEM CUSTOM — mobile-first
   ----------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;          /* mobile: 1 colonna */
}
.grid--gap-lg { gap: var(--space-6); }

/* Auto-fit responsive: le card si adattano allo spazio */
.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Layout a due colonne (es. bio: testo + immagine) */
.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split--reverse > :first-child { order: 2; }
}

/* -----------------------------------------------------------------
   6. BUTTONS (base — varianti dettagliate in components.css)
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-color: var(--accent);
  color: var(--color-white);
}
.btn--primary:hover {
  background-color: var(--accent-hover);
  color: var(--color-white);
}

.btn--outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn--outline:hover {
  background-color: var(--accent);
  color: var(--color-white);
}

.btn--light {
  background-color: var(--color-white);
  color: var(--color-ink);
}
.btn--light:hover { background-color: var(--color-cream); color: var(--color-ink); }

.btn--ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}
.btn--ghost-light:hover {
  background-color: var(--color-white);
  color: var(--color-ink);
}

/* -----------------------------------------------------------------
   7. UTILITY CLASSES
   ----------------------------------------------------------------- */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-gold    { color: var(--accent); }
.text-muted   { color: var(--color-muted); }
.uppercase    { text-transform: uppercase; letter-spacing: var(--ls-wide); }

.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap   { flex-wrap: wrap; }
.gap-3       { gap: var(--space-3); }
.gap-4       { gap: var(--space-4); }

.full-width  { width: 100%; }
.relative    { position: relative; }
.rounded     { border-radius: var(--radius); }
.rounded-lg  { border-radius: var(--radius-lg); }
.shadow      { box-shadow: var(--shadow); }
.overflow-hidden { overflow: hidden; }

/* Accessibilità: nascondi visivamente ma leggibile da screen reader */
.visually-hidden {
  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 accessibilità */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: var(--z-modal);
  background: var(--accent);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Divisore a filo (hairline) editoriale */
.divider {
  width: 44px;
  height: 1px;
  background-color: var(--color-nude-dark);
  opacity: 0.55;
  border: 0;
  margin: var(--space-5) auto;
}
.divider--left { margin-inline: 0; }

/* Placeholder immagine (finché non ci sono i file reali) */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-sand), var(--color-nude-light));
  color: var(--color-rose);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-align: center;
  aspect-ratio: 4 / 5;
  width: 100%;
}
.img-placeholder--wide { aspect-ratio: 16 / 9; }
.img-placeholder--square { aspect-ratio: 1 / 1; }

/* -----------------------------------------------------------------
   8. ANIMAZIONI LEGGERE
   ----------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Reveal on scroll: elemento parte nascosto, .is-visible lo mostra (gestito in main.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Varianti direzionali: l'elemento entra da sinistra / destra */
.reveal--left  { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--left.is-visible,
.reveal--right.is-visible { transform: translateX(0); }

/* Line-art SVG che si "disegna" all'ingresso (solo opacità: niente transform,
   per non rompere il posizionamento absolute dei rametti) */
.reveal-draw {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.reveal-draw.is-visible { opacity: 1; }
.reveal-draw path {
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
}
.reveal-draw.is-visible path {
  animation: drawLine 1.9s var(--ease) forwards;
}
.reveal-draw ellipse,
.reveal-draw circle { opacity: 0; }
.reveal-draw.is-visible ellipse,
.reveal-draw.is-visible circle {
  animation: leafIn 0.7s var(--ease) forwards 0.55s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes leafIn  { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

/* Hero title: rivelazione "a tendina" riga per riga */
.hero__title--mask .mask-line {
  display: block;
  overflow: hidden;
}
.hero__title--mask .mask-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: maskUp 0.9s var(--ease) forwards;
}
.hero__title--mask .mask-line:nth-child(1) > span { animation-delay: 0.15s; }
.hero__title--mask .mask-line:nth-child(2) > span { animation-delay: 0.32s; }
@keyframes maskUp { to { transform: translateY(0); } }

/* =================================================================
   9. MOTION MODERNA (barra scroll, marquee, mask titoli, hover)
   ================================================================= */

/* --- Barra di avanzamento scroll (in alto) --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--color-nude), var(--color-nude-dark));
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 2000;
  will-change: transform;
  pointer-events: none;
}

/* --- Marquee infinito (Prata) --- */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(199, 152, 115, 0.28);
  padding-block: var(--space-5);
  background-color: var(--color-cream);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 32s linear infinite;
}
.marquee__track a {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem);
  color: var(--text-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-7);
  transition: color var(--dur) var(--ease);
}
.marquee__track a:hover,
.marquee__track a:focus-visible { color: var(--accent-hover); }
.marquee__track a::after {
  content: "✦";
  font-size: 0.55em;
  color: var(--accent);
  transform: translateY(-0.15em);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Titoli: rivelazione a tendina su scroll --- */
.mask-head { display: block; overflow: hidden; padding-bottom: 0.1em; }
.mask-head__i {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s var(--ease);
  will-change: transform;
}
.mask-head.is-visible .mask-head__i { transform: translateY(0); }

/* --- Bottone primario: riempimento "a tendina" all'hover --- */
.btn--primary { position: relative; overflow: hidden; z-index: 0; }
.btn--primary::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-color: var(--accent-hover);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.btn--primary:hover::before { transform: scaleX(1); }

/* --- Link footer/testo: sottolineatura animata --- */
.footer__links a, .footer__contact-item {
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color var(--dur) var(--ease);
}
.footer__links a:hover, .footer__contact-item:hover { background-size: 100% 1px; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .mask-head__i { transform: none; transition: none; }
  .scroll-progress { display: none; }
}

/* --- Foto editoriali: placeholder col logo + fade-in al caricamento ---
   La visibilità NON dipende più dallo scroll (prima un clip-path le teneva
   nascoste finché .is-visible non scattava: fragile su mobile). Ora la figura
   è sempre visibile e l'immagine sfuma appena è caricata, mostrando intanto
   il logo come segnaposto — stessa logica della galleria. */
.manifesto__media.reveal,
.about__media.reveal,
.service-row__media.reveal,
.service-hero__media.reveal,
.cinema__media.reveal,
.page-hero__media.reveal,
.contact-photo.reveal {
  opacity: 1;
  transform: none;
  clip-path: none;
}

/* Segnaposto attivo solo con JS (.media-ph aggiunta da main.js):
   senza JS le immagini restano comunque visibili. */
.media-ph { position: relative; background-color: var(--color-sand); overflow: hidden; }
.media-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/logo-color.png") no-repeat center / clamp(80px, 26%, 150px) auto;
  opacity: 0.20;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.media-ph.is-loaded::before { opacity: 0; }
.media-ph img {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.media-ph img.is-loaded { opacity: 1; }
/* card servizi: mantieni anche la transizione dello zoom hover */
.card__media.media-ph img       { transition: opacity 0.8s var(--ease), transform 0.6s var(--ease); }
/* PMU card e altri pannelli: mantieni zoom hover */
.pmu-card__img.media-ph img     { transition: opacity 0.8s var(--ease), transform 0.55s var(--ease); }
.altri-panel__img.media-ph img  { transition: opacity 0.8s var(--ease), transform 0.55s var(--ease); }
/* Hub servizi: mantieni clip-path + zoom */
.svc-item__panelmedia.media-ph img { transition: opacity 0.6s var(--ease), clip-path 0.6s var(--ease), transform 0.6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .media-ph img { transition: opacity 0.2s linear; }
}

/* --- Recensioni in carosello automatico --- */
.reviews-marquee { overflow: hidden; }
.reviews-marquee__track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  animation: marquee 64s linear infinite;
}
.reviews-marquee:hover .reviews-marquee__track { animation-play-state: paused; }
.reviews-marquee .review { flex: 0 0 clamp(270px, 82vw, 360px); margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .reviews-marquee { overflow-x: auto; }
  .reviews-marquee__track { animation: none; }
}

/* --- Before / After slider --- */
.ba {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  touch-action: pan-y;   /* verticale = scroll pagina, orizzontale = slider */
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ba__before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
  touch-action: pan-y;   /* lascia passare lo scroll verticale su mobile */
}
.ba__handle {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}
.ba__handle::after {
  content: "↔";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.96);
  color: var(--accent-hover);
  box-shadow: var(--shadow);
  font-size: 1.1rem;
}
.ba__label {
  position: absolute;
  bottom: var(--space-4);
  z-index: 2;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: #fff;
  background-color: rgba(20, 18, 16, 0.55);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.ba__label--before { left: var(--space-4); }
.ba__label--after { right: var(--space-4); }

/* --- FAQ (accordion nativo <details>) --- */
.faq { margin-top: var(--space-6); }
.faq__item {
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}
.faq__item:first-child { border-top: 1px solid rgba(20, 20, 20, 0.12); }
.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--text-base);
  transition: color var(--dur) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent-hover);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q { color: var(--accent-hover); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--accent-hover); }
.faq__a {
  padding: 0 0 var(--space-5);
  color: var(--text-soft);
  line-height: 1.8;
  max-width: 70ch;
}
.faq__a a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
/* leggera animazione d'apertura */
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__a { animation: faqOpen 0.4s var(--ease); }
  @keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
}
