/* ==========================================================================
   Geometra Muserle Gian Antonio — BOZZA SITO (2026-10-10)
   Foglio di stile unico, condiviso da tutte le pagine.
   Impostazione: prima smartphone, poi tablet (>=700px) e desktop (>=1000px).
   Nessuna risorsa esterna: solo font di sistema.
   ========================================================================== */

:root {
  --nero: #1c1c1c;
  --antracite: #2b2b2b;
  --grigio-logo: #4d4d4d;
  --testo: #262626;
  --testo-2: #5e5b56;
  --fondo: #f4f2ee;
  --fondo-2: #ebe8e2;
  --carta: #ffffff;
  --bordo: #e1ddd5;
  --verde: #17834a;
  --verde-scuro: #116a3b;
  --giallo: #ffe27a;
  --giallo-chiaro: #fff6d1;
  --giallo-bordo: #d9a900;
  --foto: #d8d5cf;
  --foto-testo: #5e5b56;
  --raggio: 16px;
  --raggio-s: 10px;
  --font-titoli: "Avenir Next", Avenir, "Century Gothic", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-testo: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --barra-h: 68px;
}

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

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--testo);
  font-family: var(--font-testo);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
  padding-bottom: calc(var(--barra-h) + env(safe-area-inset-bottom, 0px));
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--nero); text-underline-offset: 3px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-titoli);
  color: var(--nero);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: 1.85rem; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: var(--testo-2); margin: 1.5em 0 .5em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
li::marker { color: var(--testo-2); }

.contenitore { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.stretto { max-width: 760px; }

.salta {
  position: absolute; left: -9999px; top: 0;
  background: var(--nero); color: #fff; padding: 10px 14px; z-index: 100;
}
.salta:focus { left: 8px; top: 8px; color: #fff; }

.solo-lettori {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Striscia "bozza" ---------------------------------------------------- */
.striscia-bozza {
  background: var(--giallo);
  color: var(--nero);
  font-size: .78rem;
  line-height: 1.35;
  padding: 7px 0;
  text-align: center;
}
.striscia-bozza strong { letter-spacing: .08em; }

/* --- Intestazione --------------------------------------------------------- */
.testata {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 242, 238, .97);
  border-bottom: 1px solid var(--bordo);
}
.testata__riga {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px;
}
.testata__logo { display: block; flex: 0 0 auto; }
.testata__logo img { height: 44px; width: auto; }

.menu-bottone {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px;
  background: transparent; border: 0; border-radius: var(--raggio-s); cursor: pointer;
}
.menu-bottone span { display: block; height: 3px; background: var(--nero); border-radius: 2px; }

.menu {
  display: none;
  border-top: 1px solid var(--bordo);
  padding: 6px 0 14px;
}
.menu.aperto { display: block; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { margin: 0; }
.menu a {
  display: block; padding: 13px 4px;
  font-family: var(--font-titoli); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border-bottom: 1px solid var(--bordo);
}
.menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--nero); padding-left: 14px; }
.testata .testata__chiama { display: none; }

/* --- Pulsanti ------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 20px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-titoli); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
}
.btn--scuro { background: var(--antracite); color: #fff; }
.btn--scuro:hover { background: #000; color: #fff; }
.btn--verde { background: var(--verde); color: #fff; }
.btn--chiaro { background: var(--carta); color: var(--nero); border-color: var(--nero); }
.btn--chiaro:hover { background: var(--fondo-2); }
.btn--blocco { display: flex; width: 100%; }
.btn[aria-disabled="true"] { cursor: not-allowed; }
.btn .etichetta { position: absolute; top: -11px; right: 10px; }

.pulsanti { display: grid; gap: 16px; margin: 0 0 14px; }
.pulsanti--riga { grid-template-columns: 1fr; }

.link-freccia { font-weight: 600; }
.link-freccia::after { content: " \2192"; }

/* --- Segnaposto: "da confermare" / "da fornire" --------------------------- */
.etichetta {
  display: inline-block;
  background: var(--giallo); color: var(--nero);
  border: 1px solid var(--giallo-bordo); border-radius: 4px;
  padding: 1px 7px;
  font-family: var(--font-testo); font-size: .68rem; font-weight: 700; line-height: 1.5;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  vertical-align: middle;
}
.nota {
  background: var(--giallo-chiaro);
  border: 1px dashed var(--giallo-bordo);
  border-left: 5px solid var(--giallo-bordo);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 1em;
  font-size: .9rem; line-height: 1.45; color: var(--nero);
}
.nota .etichetta { margin-right: 6px; }
.valore-mancante {
  background: var(--giallo-chiaro); border: 1px dashed var(--giallo-bordo);
  border-radius: 4px; padding: 1px 6px; font-size: .88rem;
}

/* --- Segnaposto foto e mappa ---------------------------------------------- */
.foto {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--foto);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.28) 0 14px, rgba(255,255,255,0) 14px 28px);
  border: 1px solid #c4c0b9; border-radius: var(--raggio);
  color: var(--foto-testo); text-align: center;
  padding: 18px; min-height: 200px;
}
.foto__titolo { font-family: var(--font-titoli); font-weight: 700; letter-spacing: .12em; font-size: .85rem; text-transform: uppercase; }
.foto__testo { font-size: .85rem; max-width: 30ch; }
.foto--ritratto { aspect-ratio: 4 / 5; min-height: 0; }
.foto--largo { aspect-ratio: 16 / 10; min-height: 0; }
.foto--mappa { aspect-ratio: 16 / 10; min-height: 0; }

/* --- Sezioni e schede ----------------------------------------------------- */
.sezione { padding: 34px 0; }
.sezione--chiara { background: var(--fondo-2); }
.sezione__titolo { margin-bottom: .8em; }

.scheda {
  background: var(--carta);
  border: 1px solid var(--bordo);
  border-radius: var(--raggio);
  padding: 20px 18px;
}
.scheda > :last-child { margin-bottom: 0; }

.griglia { display: grid; gap: 14px; }

.numero {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 50%; background: var(--antracite); color: #fff;
  font-family: var(--font-titoli); font-weight: 700; font-size: .95rem;
}

/* --- Home: apertura -------------------------------------------------------- */
.apertura { padding: 18px 0 30px; }
.apertura__griglia { display: grid; gap: 18px; }
.apertura__scheda {
  background: linear-gradient(140deg, #3a3a3a 0%, #2b2b2b 55%, #1c1c1c 100%);
  color: #fff; border-radius: var(--raggio);
  padding: 30px 20px 26px;
}
.apertura__scheda h1 { color: #fff; font-size: 1.8rem; margin-bottom: .6em; }
.apertura__scheda h1 span { display: block; text-wrap: balance; }
.apertura__sotto { color: #e9e6e0; font-size: 1.02rem; margin: 0; }
.apertura__bozza { margin: 0 0 14px; }
.apertura__azioni { padding-top: 6px; }
.apertura__orari { font-size: .92rem; color: var(--testo-2); margin: 10px 0 0; }

/* --- Blocco contatto finale ------------------------------------------------ */
.invito {
  background: var(--antracite); color: #fff;
  border-radius: var(--raggio); padding: 28px 20px;
}
.invito h2 { color: #fff; }
.invito p { color: #e9e6e0; }
.invito a:not(.btn) { color: #fff; }
.invito .btn--scuro { background: #fff; color: var(--nero); }
.invito .btn--scuro:hover { background: var(--fondo-2); color: var(--nero); }
.invito > :last-child { margin-bottom: 0; }

/* --- Chi sono (Home) ------------------------------------------------------- */
.chi { display: grid; gap: 18px; align-items: start; }
.chi .foto--ritratto { max-width: 300px; }

.comuni strong { white-space: nowrap; }

/* --- Testata di pagina interna -------------------------------------------- */
.pagina-testa { padding: 28px 0 8px; }
.pagina-testa p { font-size: 1.05rem; color: var(--testo); max-width: 62ch; }

/* --- Servizi --------------------------------------------------------------- */
.indice { margin: 0 0 6px; }
.indice ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.indice li { margin: 0; }
.indice a {
  display: inline-block; padding: 8px 14px;
  background: var(--carta); border: 1px solid var(--bordo); border-radius: 999px;
  font-size: .9rem; font-weight: 600; text-decoration: none;
}
.indice a:hover { border-color: var(--nero); }
.indice a.punta { background: var(--grigio-logo); border-color: var(--grigio-logo); color: #fff; }

.servizio { scroll-margin-top: 84px; padding: 0; overflow: hidden; }
.servizio__testa { padding: 20px 18px 0; }
.servizio__testa h3 { font-size: 1.3rem; margin-bottom: .3em; }
.servizio__sotto { color: var(--testo-2); font-weight: 600; margin: 0; }
.servizio__corpo { padding: 4px 18px 22px; }
.servizio__corpo > :last-child { margin-bottom: 0; }
.servizio--punta { border: 2px solid var(--antracite); }
.servizio--punta .servizio__testa { background: var(--antracite); padding: 22px 18px 20px; }
.servizio--punta .servizio__testa h3 { color: #fff; font-size: 1.45rem; }
.servizio--punta .servizio__sotto { color: #e9e6e0; }
.servizio__azione { margin-top: 1.4em; }

.passi { list-style: none; padding: 0; counter-reset: passo; }
.passi li { counter-increment: passo; position: relative; padding-left: 40px; margin-bottom: .7em; min-height: 28px; }
.passi li::before {
  content: counter(passo);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--nero);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-titoli); font-weight: 700; font-size: .82rem;
}

/* --- Lavori ---------------------------------------------------------------- */
.lavoro { padding: 14px; }
.lavoro .foto { margin-bottom: 14px; }
.dati { margin: 0; }
.dati dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--testo-2); font-weight: 700; margin-top: 12px; }
.dati dd { margin: 3px 0 0; }

/* --- Contatti -------------------------------------------------------------- */
.recapito h2 { font-size: 1.1rem; margin-bottom: .5em; }
.recapito .grande { font-family: var(--font-titoli); font-size: 1.3rem; font-weight: 700; }
.recapito a.grande { text-decoration: none; }
.piccolo { font-size: .86rem; color: var(--testo-2); }
.spezza { overflow-wrap: anywhere; }

.modulo { scroll-margin-top: 84px; }
.campo { margin-bottom: 16px; }
.campo label { display: block; font-weight: 600; margin-bottom: 6px; }
.campo .facoltativo { font-weight: 400; color: var(--testo-2); font-size: .88rem; }
.campo input[type="text"], .campo input[type="tel"], .campo input[type="email"], .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; color: var(--testo);
  background: #fff; border: 1.5px solid #b9b5ad; border-radius: var(--raggio-s);
}
.campo textarea { min-height: 140px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--nero); }
.campo--spunta { display: flex; gap: 12px; align-items: flex-start; }
.campo--spunta input { width: 22px; height: 22px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--antracite); }
.campo--spunta label { font-weight: 400; margin: 0; font-size: .93rem; }
.messaggio { border-radius: var(--raggio-s); padding: 12px 14px; margin: 0 0 10px; font-size: .95rem; border: 1px solid var(--bordo); background: var(--fondo); }
.messaggio--ok { border-left: 5px solid var(--verde); }
.messaggio--errore { border-left: 5px solid #b3261e; }

/* --- Piè di pagina --------------------------------------------------------- */
.piede { background: var(--nero); color: #d9d6d0; padding: 34px 0 26px; font-size: .93rem; margin-top: 34px; }
.piede a { color: #fff; }
.piede__logo { height: 56px; width: auto; margin-bottom: 18px; }
.piede__griglia { display: grid; gap: 22px; }
.piede p { margin: 0 0 .5em; }
.piede strong { color: #fff; }
.piede ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.piede li { margin: 0; }
.piede__legali { margin-top: 12px; }
.piede__legali .finto-link { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; color: #fff; cursor: not-allowed; }
.piede__fine { border-top: 1px solid #3d3d3d; margin-top: 24px; padding-top: 16px; font-size: .84rem; color: #b5b1aa; }
.piede .nota { margin-top: 10px; }

/* --- Barra di contatto fissa (smartphone e tablet) ------------------------- */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--bordo);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  padding: 13px 12px calc(9px + env(safe-area-inset-bottom, 0px));
}
.barra__riga { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; margin: 0 auto; }
.barra .btn { min-height: 46px; padding: 8px 10px; font-size: .95rem; }
.barra .btn .etichetta { top: -11px; right: 8px; font-size: .62rem; }
/* Finché c'è la barra fissa in basso, i due pulsanti dell'apertura sarebbero un doppione */
@media (max-width: 999.98px) {
  .apertura__azioni .pulsanti--riga { display: none; }
}

/* ==========================================================================
   TABLET (>= 700px)
   ========================================================================== */
@media (min-width: 700px) {
  body { font-size: 17.5px; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.7rem; }
  .contenitore { padding: 0 28px; }
  .sezione { padding: 48px 0; }
  .testata__logo img { height: 50px; }
  .griglia--3 { grid-template-columns: repeat(3, 1fr); }
  .griglia--2 { grid-template-columns: repeat(2, 1fr); }
  .pulsanti--riga { grid-template-columns: repeat(2, minmax(0, 260px)); }
  .apertura__scheda { padding: 44px 36px 40px; }
  .apertura__scheda h1 { font-size: 2.4rem; }
  .chi { grid-template-columns: 240px 1fr; gap: 30px; }
  .invito { padding: 40px 36px; }
  .piede__griglia { grid-template-columns: 1.3fr 1fr 1fr; }
  .servizio__testa, .servizio__corpo { padding-left: 26px; padding-right: 26px; }
  .servizio--punta .servizio__testa { padding-left: 26px; padding-right: 26px; }
  .scheda { padding: 24px; }
  .servizio { padding: 0; }
  .lavoro { padding: 16px; }
}

/* ==========================================================================
   DESKTOP (>= 1000px)
   ========================================================================== */
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .barra { display: none; }

  .menu-bottone { display: none; }
  .testata__riga { min-height: 78px; flex-wrap: nowrap; }
  .testata__logo img { height: 54px; }
  .menu { display: block; border: 0; padding: 0; margin-left: auto; }
  .menu ul { display: flex; gap: 4px; }
  .menu a { border: 0; padding: 10px 14px; font-size: 1rem; border-radius: 999px; }
  .menu a:hover { background: var(--fondo-2); }
  .menu a[aria-current="page"] { box-shadow: none; padding-left: 14px; background: var(--fondo-2); }
  .testata .testata__chiama { display: inline-flex; min-height: 44px; padding: 8px 18px; font-size: .95rem; }
  .testata .contenitore { display: flex; align-items: center; gap: 18px; }
  .testata__riga { flex: 0 0 auto; }

  .apertura { padding: 30px 0 44px; }
  .apertura__griglia { grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: stretch; }
  .apertura__scheda { padding: 60px 48px; display: flex; flex-direction: column; justify-content: center; }
  .apertura__scheda h1 { font-size: 2.5rem; }
  .apertura__sotto { font-size: 1.15rem; max-width: 52ch; }
  .apertura__azioni { background: var(--carta); border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 34px 28px; display: flex; flex-direction: column; justify-content: center; }
  .apertura__azioni .pulsanti--riga { grid-template-columns: 1fr; }

  .servizi-altri { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .servizio--punta .servizio__corpo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; padding-top: 8px; padding-bottom: 28px; }
  .servizio--punta .servizio__corpo > div > :last-child { margin-bottom: 0; }
  .contatti-griglia { grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; }
  .chi-pagina { grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .barra, .menu-bottone, .striscia-bozza { display: none; }
  body { padding-bottom: 0; background: #fff; }
  .testata { position: static; }
}
