/* ==========================================================================
   Template 01 — EDITORIALE
   Svizzero, tipografia pesante, bianco e nero. Per studi e professionisti.
   Le "Clash Display" e "Satoshi" del progetto originale non stanno su Google
   Fonts: qui usiamo Archivo e Manrope, che reggono lo stesso peso ottico e
   non aggiungono un terzo fornitore a cui mandare gli indirizzi di chi legge.
   ========================================================================== */
:root {
  --carta:  #f2f2f2;
  --nero:   #111111;
  --quasi:  #1e1e1e;
  --grigio: #838282;
  --chiaro: #b6b5b5;
  --eco-1:  #bfbfbf;
  --eco-2:  #c9c9c9;
  --eco-3:  #d1d1d1;
  --eco-4:  #d9d9d9;
  --lento:  700ms cubic-bezier(0.77, 0, 0.175, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--carta); color: var(--nero);
  font-family: 'Manrope', system-ui, sans-serif; font-weight: 500;
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, .display {
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 700;
  letter-spacing: -0.05em; line-height: 0.9;
}
a { color: inherit; }
.dentro { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* --- Testata appiccicata in alto ---------------------------------------- */
.testata {
  position: sticky; top: 0; z-index: 60; height: 80px;
  background: rgba(242,242,242,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30,30,30,.1);
}
.testata-dentro { height: 100%; display: flex; align-items: center; gap: 40px; }
.marchio { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.04em; text-decoration: none; }
.voci { display: flex; gap: 36px; margin-left: auto; }
.voci a { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; transition: color 120ms ease; }
.voci a:hover { color: var(--chiaro); }
.pillola {
  border: 1px solid var(--quasi); border-radius: 999px;
  padding: 11px 24px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; transition: background .3s ease, color .3s ease;
}
.pillola:hover { background: var(--quasi); color: var(--carta); }

/* --- Apertura con l'eco tipografica -------------------------------------
   La stessa parola ripetuta cinque volte: quattro copie sfalsate dietro,
   sempre piu chiare, e davanti quella nera. L'effetto e tutto qui. */
.apertura {
  min-height: 78vh; display: grid; place-items: center;
  padding-block: 90px 70px; text-align: center;
}
.eco { position: relative; display: inline-block; isolation: isolate; }
.eco-parola {
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: clamp(72px, 15vw, 230px); line-height: .9; letter-spacing: -0.05em;
  text-transform: uppercase; display: block;
}
.eco-sotto {
  position: absolute; inset: 0; pointer-events: none; user-select: none; z-index: -1;
}
.eco-sotto:nth-of-type(1) { color: var(--eco-1); transform: translate(-0.04em, -0.04em); }
.eco-sotto:nth-of-type(2) { color: var(--eco-2); transform: translate(-0.08em, -0.08em); }
.eco-sotto:nth-of-type(3) { color: var(--eco-3); transform: translate(-0.12em, -0.12em); }
.eco-sotto:nth-of-type(4) { color: var(--eco-4); transform: translate(-0.16em, -0.16em); }
.apertura-coda { margin-top: 36px; font-size: 17px; color: var(--grigio); max-width: 46ch; margin-inline: auto; }

/* --- Il pensiero --------------------------------------------------------- */
.pensiero { padding-block: 120px; text-align: center; }
.filo { width: 1px; height: 90px; background: rgba(30,30,30,.1); margin: 0 auto 56px; }
.citazione { font-size: clamp(30px, 4.4vw, 60px); max-width: 18ch; margin-inline: auto; }
.citazione em { font-family: Georgia, 'Times New Roman', serif; font-style: italic; letter-spacing: -0.02em; }
.tre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 90px; text-align: left; }
.tre h3 { font-size: 21px; margin-bottom: 12px; }
.tre p { font-size: 15px; color: var(--grigio); font-weight: 400; }

/* --- Vetrina sbilanciata -------------------------------------------------- */
.vetrina { padding-block: 60px 120px; }
.griglia-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.lastra { overflow: hidden; position: relative; background: var(--chiaro); }
.lastra-foto {
  width: 100%; height: 100%; display: block;
  filter: grayscale(.8); transform: scale(1);
  transition: filter var(--lento), transform var(--lento);
}
.lastra:hover .lastra-foto { filter: grayscale(0); transform: scale(1.05); }
.lastra-dida {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font-size: 11px; text-transform: uppercase; letter-spacing: .16em;
  background: var(--carta); padding: 7px 13px;
}
.l-larga   { grid-column: span 8; aspect-ratio: 16/9;  border-radius: 4px; }
.l-pillola { grid-column: span 4; height: 500px; border-radius: 9999px; }
.l-tonda   { grid-column: span 5; aspect-ratio: 1;     border-radius: 50%; }
.l-media   { grid-column: span 7; aspect-ratio: 16/10; border-radius: 4px; }

/* I fondi delle lastre sono disegnati col CSS: nessuna foto da scaricare,
   nessuna immagine presa in prestito da un altro sito. */
.f1 { background: linear-gradient(135deg, #9a9a9a, #4a4a4a); }
.f2 { background: linear-gradient(200deg, #c4c4c4, #6e6e6e); }
.f3 { background: linear-gradient(45deg,  #8e8e8e, #2f2f2f); }
.f4 { background: linear-gradient(160deg, #b2b2b2, #5a5a5a); }

/* --- Servizi -------------------------------------------------------------- */
.servizi { padding-block: 40px 130px; }
.servizi-griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.servizio {
  border: 1px solid rgba(30,30,30,.1); padding: 36px 32px;
  background: transparent; transition: background .3s ease;
  display: flex; flex-direction: column; gap: 18px; text-decoration: none;
}
.servizio:hover { background: #fff; }
.segno {
  width: 64px; height: 64px; border: 1px solid rgba(30,30,30,.15);
  display: grid; place-items: center; transition: transform .3s ease;
}
.servizio:hover .segno { transform: rotate(12deg); }
.segno span { width: 22px; height: 22px; background: var(--nero); display: block; }
.segno-tondo span { border-radius: 50%; }
.segno-vuoto span { background: transparent; border: 3px solid var(--nero); }
.servizio h3 { font-size: 23px; }
.servizio p { font-size: 15px; color: var(--grigio); font-weight: 400; flex: 1; }
.vai { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }

/* --- Piede ---------------------------------------------------------------- */
.piede { background: var(--quasi); color: rgba(246,246,246,.6); padding-block: 72px 36px; border-top: 1px solid rgba(255,255,255,.05); }
.piede-griglia { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.piede h4 { color: #f6f6f6; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 18px; font-family: 'Manrope', sans-serif; font-weight: 700; letter-spacing: .16em; }
.piede p, .piede li { font-size: 14px; font-weight: 400; }
.piede ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.piede a { text-decoration: none; transition: color .2s ease; }
.piede a:hover { color: #f6f6f6; }
.piede-marchio { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 26px; color: #f6f6f6; margin-bottom: 14px; letter-spacing: -0.04em; }
.piede-fondo { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }

/* --- Striscia che dice di cosa si tratta ---------------------------------- */
.nastro {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--nero); color: var(--carta);
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 13px 20px; font-size: 13px;
}
.nastro strong { font-weight: 700; }
.nastro a { background: var(--carta); color: var(--nero); text-decoration: none; padding: 8px 18px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
body { padding-bottom: 52px; }

@media (max-width: 900px) {
  .tre, .servizi-griglia, .piede-griglia { grid-template-columns: 1fr; }
  .l-larga, .l-pillola, .l-tonda, .l-media { grid-column: 1 / -1; }
  .l-pillola { height: 360px; }
  .voci { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* --- Quando questa pagina e mostrata in anteprima dentro il sito ---------- */
.in-cornice .nastro { display: none; }
.in-cornice body { padding-bottom: 0; }
.in-cornice .testata { position: static; }

/* La striscia del template sul telefono: una riga sola, non un ottavo dello schermo. */
@media (max-width: 640px) {
  .nastro { flex-wrap: nowrap; justify-content: space-between; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .nastro > span { font-size: 0; min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .nastro > span strong { font-size: 12.5px; }
  .nastro a { flex: 0 0 auto; padding: 7px 10px; font-size: 12.5px; white-space: nowrap; }
  body { padding-bottom: 50px; }
}
