/* FATTO3D – stile del sito */

:root {
  --plastica: #F1F3F0;      /* sfondo chiaro */
  --bianco: #FFFFFF;
  --inchiostro: #0E0F0E;    /* nero del logo */
  --grigio: #545954;        /* testo secondario */
  --verde: #00F03C;         /* verde del logo, solo per campiture */
  --verde-scuro: #0A7A2C;   /* verde leggibile su bianco (link) */
  --linea: #D3D7D2;

  --testo: "Atkinson Hyperlegible", system-ui, sans-serif;
  --titolo: "Archivo", "Arial Narrow", system-ui, sans-serif;

  --larghezza: 72rem;
  --margine: clamp(1rem, 4vw, 2.5rem);
  --raggio-piccolo: 6px;
  --raggio: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--plastica);
  color: var(--inchiostro);
  font: 400 1.0625rem/1.6 var(--testo);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--verde-scuro); text-underline-offset: 0.18em; }
a:focus-visible, .bottone:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 3px;
  border-radius: var(--raggio-piccolo);
}
h1, h2, h3 { font-family: var(--titolo); line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 850; font-stretch: 112%; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 750; font-stretch: 100%; }
p { margin: 0; }

.salta { position: absolute; left: -999px; top: 0; background: var(--verde); color: var(--inchiostro); padding: .5rem 1rem; z-index: 99; }
.salta:focus { left: 1rem; }

/* ---------- Marchio ---------- */
.marchio, .piede-marchio {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--inchiostro);
  font-family: var(--titolo); font-weight: 900; font-stretch: 112%;
  font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1;
}
.marchio img { width: 2.6rem; height: auto; }
.piede-marchio img { width: 3.2rem; height: auto; }

/* ---------- Testata ---------- */
.testata {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .75rem var(--margine);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.menu { display: flex; gap: 1.25rem; margin-left: auto; }
.menu a { color: var(--inchiostro); text-decoration: none; font-weight: 700; font-size: .95rem; }
.menu a:hover { color: var(--verde-scuro); }
@media (max-width: 860px) {
  .menu { display: none; }
  .testata .bottone { margin-left: auto; }
}

/* ---------- Pulsanti ---------- */
.bottone {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: .6rem 1.25rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  background: var(--inchiostro); color: var(--bianco);
  border: 2px solid var(--inchiostro);
  transition: transform .15s ease, background-color .15s ease;
}
.bottone:hover { transform: translateY(-1px); }
.bottone:active { transform: translateY(1px); }
.bottone-wa { background: var(--verde); border-color: var(--inchiostro); color: var(--inchiostro); }
.bottone-linea { background: transparent; color: var(--inchiostro); }
.bottone-spento { background: var(--linea); border-color: var(--linea); color: var(--grigio); pointer-events: none; }
.bottone.piccolo { min-height: 2.3rem; padding: .35rem 1rem; font-size: .9rem; }
.azioni { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Apertura: il titolo "stampato a strati" ---------- */
.apertura {
  max-width: var(--larghezza); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) var(--margine) clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.strati {
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  font-weight: 900;
  font-stretch: 118%;
  letter-spacing: -0.035em;
  line-height: .98;
  /* righe orizzontali come gli strati di una stampa FDM */
  background: repeating-linear-gradient(
    to bottom,
    var(--inchiostro) 0, var(--inchiostro) 0.085em,
    rgba(14, 15, 14, .5) 0.085em, rgba(14, 15, 14, .5) 0.1em);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: stampa 1.8s steps(22, end) .2s both;
}
@keyframes stampa {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { .strati { animation: none; } }

.sottotitolo { margin-top: 1.5rem; font-size: 1.2rem; max-width: 34em; color: var(--grigio); }
.apertura-foto { margin: 0; }
.apertura-foto img, .copertina-riserva {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--raggio);
  border: 2px solid var(--inchiostro);
  box-shadow: 10px 10px 0 var(--verde);
}
@media (max-width: 860px) {
  .apertura { grid-template-columns: 1fr; }
  .apertura-foto { max-width: 26rem; }
}

/* ---------- Sezioni ---------- */
.sezione {
  max-width: var(--larghezza); margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--margine);
}
.sezione-chiara {
  max-width: none;
  background: var(--bianco);
  border-block: 1px solid var(--linea);
  padding-inline: max(var(--margine), calc((100% - var(--larghezza)) / 2 + var(--margine)));
}
.intestazione { max-width: 40rem; margin-bottom: 2.5rem; }
.intestazione p { margin-top: 1rem; color: var(--grigio); font-size: 1.125rem; }

/* Servizi: elenco a due colonne separato da linee */
.servizi {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--inchiostro);
}
.servizi li { padding: 1.5rem 2rem 1.75rem 0; border-bottom: 1px solid var(--linea); }
.servizi li:nth-child(odd) { border-right: 1px solid var(--linea); }
.servizi li:nth-child(even) { padding-left: 2rem; }
.servizi p { margin-top: .5rem; color: var(--grigio); max-width: 32em; }
@media (max-width: 700px) {
  .servizi { grid-template-columns: 1fr; }
  .servizi li:nth-child(odd) { border-right: 0; }
  .servizi li:nth-child(even) { padding-left: 0; }
}

.passi { margin-top: 3.5rem; }
.passi ol { list-style: none; counter-reset: passo; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.passi li { counter-increment: passo; padding-top: 1rem; border-top: 4px solid var(--inchiostro); }
.passi li::after { content: ""; display: block; }
.passi li::before { content: counter(passo); display: block; font: 900 2rem/1 var(--titolo); margin-bottom: .5rem; }
.passi strong { display: block; }
@media (max-width: 700px) { .passi ol { grid-template-columns: 1fr; } }

/* ---------- Shop ---------- */
.prodotti { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.5rem; }
.prodotto {
  display: flex; flex-direction: column;
  background: var(--plastica);
  border-radius: var(--raggio);
  overflow: hidden;
}
.prodotto-foto img, .prodotto-foto .riserva { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prodotto-corpo { padding: 1.1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.prodotto-descr { color: var(--grigio); font-size: .97rem; }
.prodotto-fondo { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.prezzo { font: 800 1.25rem/1 var(--titolo); }
.prodotto-foto, .console-scheda { position: relative; }
.nota { margin-top: 2rem; color: var(--grigio); }
.filtri { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filtro {
  font: 700 .95rem/1 var(--testo); color: var(--inchiostro);
  background: var(--bianco); border: 2px solid var(--linea);
  border-radius: 999px; padding: .6rem 1rem; cursor: pointer;
}
.filtro:hover { border-color: var(--inchiostro); }
.filtro[aria-pressed="true"] { background: var(--inchiostro); border-color: var(--inchiostro); color: var(--bianco); }
.filtro:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; }
.mostra-altri { margin-top: 2rem; cursor: pointer; font-family: var(--testo); }
.prodotto-cat { font-size: .82rem; font-weight: 700; color: var(--verde-scuro); }
.prodotto h3 { font-size: 1.05rem; line-height: 1.25; font-family: var(--testo); font-weight: 700; }
.prodotto-fondo { flex-direction: column; align-items: flex-start; }
.prodotto-azioni { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.prodotto-azioni .bottone { white-space: nowrap; min-height: 2.5rem; padding: .45rem 1.1rem; font-size: .95rem; }
.link-wa { font-weight: 700; font-size: .92rem; color: var(--verde-scuro); }
.prodotto-foto img { background: var(--bianco); }

/* ---------- Console ---------- */
.console {
  max-width: none;
  background: var(--inchiostro); color: var(--bianco);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  padding-inline: max(var(--margine), calc((100% - var(--larghezza)) / 2 + var(--margine)));
  position: relative;
}
.console::before { /* banda rosso/blu come il logo */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: var(--verde);
}
.console-testo p { margin-top: 1rem; color: #C9CEC8; max-width: 36em; }
.console-testo h2 { color: var(--bianco); }
.console-negozi h3 { color: var(--bianco); margin-bottom: 1rem; }
.console-negozi ul { list-style: none; margin: 0; padding: 0; }
.console-negozi li { border-top: 1px solid #2E322E; }
.console-negozi li:last-child { border-bottom: 1px solid #2E322E; }
.console-negozi a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; color: var(--bianco); text-decoration: none;
  font: 800 1.5rem/1 var(--titolo); font-stretch: 112%;
}
.console-negozi a::after { content: "↗"; font-family: var(--testo); color: var(--verde); }
.console-negozi a:hover { color: var(--verde); }
@media (max-width: 860px) { .console { grid-template-columns: 1fr; } }

/* Carosello console */
.carosello-blocco { grid-column: 1 / -1; min-width: 0; }
.carosello-testa { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.carosello-testa h3 { color: var(--bianco); }
.carosello-frecce { display: flex; gap: .5rem; }
.freccia {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 2px solid #3A3F3A; background: transparent; color: var(--bianco);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.freccia:hover { border-color: var(--verde); color: var(--verde); }
.freccia:focus-visible, .carosello:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; }
.carosello {
  list-style: none; margin: 0; padding: 0 0 .75rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 15rem); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-color: #3A3F3A transparent;
}
@media (prefers-reduced-motion: reduce) { .carosello { scroll-behavior: auto; } }
.carosello li { scroll-snap-align: start; }
.console-scheda {
  display: block; text-decoration: none; color: var(--bianco);
  background: #1B1D1B; border-radius: var(--raggio); overflow: hidden; height: 100%;
}
.console-scheda img, .console-scheda .riserva { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bianco); }
.console-info { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .4rem; }
.console-nome { font-weight: 700; line-height: 1.3; }
.console-stato { font-size: .85rem; color: var(--verde); }
.console-stato.venduta { color: #9AA09A; }
a.console-scheda:hover .console-nome { text-decoration: underline; }

/* ---------- Galleria ---------- */
.galleria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.galleria figure { margin: 0; }
.galleria img, .galleria video, .galleria .riserva { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--raggio-piccolo); }
.galleria figcaption { margin-top: .5rem; font-size: .9rem; color: var(--grigio); line-height: 1.35; }
@media (max-width: 860px) { .galleria { grid-template-columns: repeat(2, 1fr); } }

/* Riquadro di riserva per foto non ancora caricate */
.riserva {
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(to bottom, #E3E6E2 0 6px, #D8DCD7 6px 7px);
  color: var(--grigio); font-size: .9rem; padding: 1rem;
}
.riserva small { font-size: .78rem; opacity: .8; }

/* ---------- Contatti ---------- */
.contatti-righe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contatto {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.5rem; border-radius: var(--raggio);
  background: var(--bianco); border: 2px solid var(--inchiostro);
  text-decoration: none; color: var(--inchiostro);
}
.contatto:hover { box-shadow: 6px 6px 0 var(--verde); }
.contatto-tipo { color: var(--grigio); font-size: .95rem; }
.contatto-valore { font: 800 clamp(1.3rem, 3vw, 1.75rem)/1.1 var(--titolo); font-stretch: 105%; word-break: break-word; }
@media (max-width: 700px) { .contatti-righe { grid-template-columns: 1fr; } }

/* ---------- Piè di pagina ---------- */
.piede {
  border-top: 1px solid var(--linea);
  padding: 2.5rem var(--margine) 3rem;
  max-width: var(--larghezza); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: start;
  font-size: .92rem; color: var(--grigio);
}
.piede-marchio { font-size: .9rem; }
.piede-link { display: flex; flex-direction: column; gap: .4rem; text-align: right; }
.piede-link span { display: flex; flex-direction: column; gap: .4rem; }
@media (max-width: 700px) {
  .piede { grid-template-columns: 1fr; }
  .piede-link { text-align: left; }
}

/* ---------- Pagine legali ---------- */
.pagina { max-width: 44rem; margin: 0 auto; padding: 3rem var(--margine) 5rem; }
.pagina h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; font-stretch: 112%; margin-bottom: 1.5rem; }
.pagina h2 { font-size: 1.4rem; font-stretch: 100%; margin: 2.25rem 0 .75rem; letter-spacing: 0; }
.pagina p, .pagina li { margin-bottom: .75rem; }
.avviso { background: #E9FBEA; border-left: 4px solid var(--verde); padding: 1rem 1.25rem; border-radius: var(--raggio-piccolo); }

/* ---------- Recensioni ---------- */
.punteggi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.punteggio {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: center;
  padding: 1.25rem 0; border-top: 2px solid var(--inchiostro);
  text-decoration: none; color: var(--inchiostro);
}
.punteggio-valore { grid-row: span 2; font: 900 clamp(2.2rem, 5vw, 3.4rem)/1 var(--titolo); font-stretch: 112%; letter-spacing: -0.02em; }
.punteggio-testo { color: var(--grigio); }
.punteggio-fonte { font-weight: 700; color: var(--verde-scuro); text-decoration: underline; text-underline-offset: .18em; }
.punteggio:hover .punteggio-fonte { color: var(--inchiostro); }
.citazioni { columns: 3 18rem; column-gap: 1.25rem; }
.citazione {
  break-inside: avoid; margin: 0 0 1.25rem;
  padding: 1.25rem 1.25rem 1.1rem; background: var(--bianco);
  border-left: 4px solid var(--verde); border-radius: 0 var(--raggio-piccolo) var(--raggio-piccolo) 0;
}
.citazione-vinted { border-left-color: var(--inchiostro); }
.citazione blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.citazione figcaption { margin-top: .75rem; font-size: .88rem; color: var(--grigio); }
@media (max-width: 700px) { .punteggi { grid-template-columns: 1fr; } }

/* ---------- Carosello in alto ---------- */
.apertura-foto { position: relative; aspect-ratio: 1; }
.apertura-foto img {
  position: absolute; inset: 0; height: 100%;
  opacity: 0; transition: opacity .8s ease;
}
.apertura-foto img.attiva { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .apertura-foto img { transition: none; } }
.copertina-punti {
  position: absolute; left: 0; right: 0; bottom: -2.25rem;
  display: flex; justify-content: center; gap: .5rem;
}
.punto {
  width: .8rem; height: .8rem; padding: 0; border-radius: 50%;
  border: 2px solid var(--inchiostro); background: transparent; cursor: pointer;
}
.punto[aria-current="true"] { background: var(--inchiostro); }
.punto:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; }

/* ---------- Timbro "Venduto" ---------- */
.timbro {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  padding: .35em .8em .3em;
  font: 900 clamp(1.3rem, 3vw, 1.7rem)/1 var(--titolo); font-stretch: 115%;
  letter-spacing: .06em; text-transform: uppercase;
  color: #C4161C; background: rgba(255, 255, 255, .82);
  border: 4px double #C4161C; border-radius: 6px;
  pointer-events: none; white-space: nowrap;
}
.prodotto.venduto .prodotto-foto img { filter: grayscale(.6); }
.console-scheda .timbro { top: 16%; left: 70%; font-size: 1rem; border-width: 3px; }
.contatore-venduti { margin-top: .35rem; color: #C9CEC8; font-size: .95rem; }

/* ---------- MakerWorld ---------- */
.mw-testa { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.mw-testa .intestazione { margin-bottom: 0; }
.mw-griglia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mw-modello {
  display: flex; flex-direction: column; text-decoration: none; color: var(--inchiostro);
  background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--raggio); overflow: hidden;
}
.mw-modello img, .mw-modello .riserva { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #F6F7F6; }
.mw-nome { padding: .75rem .9rem .9rem; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.mw-modello:hover { border-color: var(--inchiostro); }
.mw-modello:hover .mw-nome { text-decoration: underline; }
.mw-modello:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; }
@media (max-width: 860px) { .mw-griglia { grid-template-columns: repeat(2, 1fr); } }
.menu { gap: 1rem; }

/* ---------- SEO: titolo servizi e domande frequenti ---------- */
.h1-servizi { font: 700 1.05rem/1.3 var(--testo); color: var(--verde-scuro); margin-bottom: .9rem; letter-spacing: 0; }
.faq { max-width: 48rem; border-top: 2px solid var(--inchiostro); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font: 750 1.1rem/1.3 var(--titolo);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.5rem; font-weight: 400; color: var(--verde-scuro); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; }
.faq details p { padding: 0 0 1.2rem; color: var(--grigio); max-width: 40em; }
