/* Sito Già Fatto — foglio di stile unico.
   Nessuna risorsa esterna: font di sistema, nessun @import, nessun webfont remoto.
   Non introdurre qui Google Fonts, CDN, analytics o icone remote: porterebbero
   dentro cookie e trasferimenti a terzi che la pagina cookie dichiara assenti. */

:root {
  --testo: #24211d;
  --testo-tenue: #5c564e;
  --fondo: #fbf9f6;
  --fondo-alt: #f2ede6;
  --bordo: #ddd5ca;
  --accento: #8a4b2a;
  --accento-scuro: #6d3a1f;
  --misura: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--testo);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.contenitore { width: 100%; max-width: var(--misura); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- intestazione ---------- */

.testata { border-bottom: 1px solid var(--bordo); background: #fff; }

.testata .contenitore {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.marchio {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--testo);
  text-decoration: none;
}

.marchio span { color: var(--accento); }

.marchio small {
  display: block;
  font-size: .8rem;
  font-weight: 400;
  color: var(--testo-tenue);
  letter-spacing: 0;
}

.menu { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.menu a { color: var(--testo-tenue); text-decoration: none; font-size: .95rem; padding: .15rem 0; }
.menu a:hover, .menu a:focus { color: var(--accento); text-decoration: underline; }
.menu a[aria-current="page"] { color: var(--testo); font-weight: 600; }

@media (min-width: 46em) {
  .testata .contenitore { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- corpo ---------- */

main { padding: 2rem 0 3rem; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 .75rem; letter-spacing: -.015em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.25rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }

@media (min-width: 46em) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.5rem; }
}

p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .35rem; }

a { color: var(--accento); }
a:hover, a:focus { color: var(--accento-scuro); }

.occhiello {
  font-size: 1.15rem;
  color: var(--testo-tenue);
  max-width: 44rem;
}

.piccolo { font-size: .9rem; color: var(--testo-tenue); }

hr { border: 0; border-top: 1px solid var(--bordo); margin: 2.5rem 0; }

/* ---------- livelli di prezzo ---------- */

.livelli { display: grid; gap: 1rem; margin: 1.5rem 0; }

@media (min-width: 52em) {
  .livelli { grid-template-columns: repeat(3, 1fr); }
}

.livello {
  border: 1px solid var(--bordo);
  background: #fff;
  border-radius: 6px;
  padding: 1.25rem;
}

.livello h3 { margin-top: 0; font-size: 1.15rem; }

.prezzo { font-size: 1.6rem; font-weight: 700; margin: .25rem 0 0; }
.prezzo small { font-size: .95rem; font-weight: 400; color: var(--testo-tenue); }

.rinnovo {
  margin: .35rem 0 .9rem;
  font-size: .95rem;
  color: var(--testo-tenue);
  border-left: 3px solid var(--bordo);
  padding-left: .6rem;
}

.livello ul { font-size: .95rem; }

/* ---------- riquadri ---------- */

.riquadro {
  background: var(--fondo-alt);
  border: 1px solid var(--bordo);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.riquadro > :first-child { margin-top: 0; }
.riquadro > :last-child { margin-bottom: 0; }

.regole { list-style: none; padding: 0; }
.regole li { padding-left: 1.4rem; position: relative; }
.regole li::before { content: "—"; position: absolute; left: 0; color: var(--accento); }

/* ---------- dati societari ---------- */

.dati { margin: 1rem 0; }
.dati dt { font-weight: 600; margin-top: .7rem; }
.dati dd { margin: 0; color: var(--testo-tenue); }

/* ---------- modulo ---------- */

form { max-width: 34rem; }

.campo { margin-bottom: 1.1rem; }
.campo label { display: block; font-weight: 600; margin-bottom: .3rem; }
.campo .aiuto { display: block; font-weight: 400; font-size: .88rem; color: var(--testo-tenue); margin-bottom: .35rem; }

input[type="text"], input[type="email"], input[type="url"], textarea, select {
  width: 100%;
  padding: .6rem .7rem;
  font: inherit;
  color: var(--testo);
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: 4px;
}

textarea { min-height: 7rem; resize: vertical; }

input:focus, textarea:focus, select:focus { outline: 2px solid var(--accento); outline-offset: 1px; }

.scelta { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .5rem; font-weight: 400; }
.scelta input { margin-top: .35rem; }

button {
  font: inherit;
  font-weight: 600;
  background: var(--accento);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: .7rem 1.4rem;
  cursor: pointer;
}

button:hover, button:focus { background: var(--accento-scuro); }

/* campo trappola per i robot: nascosto agli umani, non ai bot */
.nascondi { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- segnaposto ---------- */

.segnaposto {
  background: #fff3cd;
  border: 1px dashed #b8860b;
  color: #6b4c00;
  padding: 0 .25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

/* ---------- piede ---------- */

.piede {
  border-top: 1px solid var(--bordo);
  background: #fff;
  padding: 1.75rem 0;
  font-size: .9rem;
  color: var(--testo-tenue);
}

.piede p { margin: 0 0 .5rem; }
.piede a { color: var(--testo-tenue); }
.piede nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .75rem; }

/* ---------- stampa ---------- */

@media print {
  .testata nav, .piede nav { display: none; }
  body { background: #fff; }
}
