/* Sito vetrina Prima Scelta — stesso aspetto del vecchio WordPress (2017), rifatto statico.
   Font e icone sono nella cartella font/: nessuna richiesta a Google, nessun cookie. */

@font-face { font-family: "Spectral SC"; font-weight: 300; font-display: swap; src: url("../font/spectral-sc-300.woff2") format("woff2"); }
@font-face { font-family: "Spectral SC"; font-weight: 400; font-display: swap; src: url("../font/spectral-sc-400.woff2") format("woff2"); }
@font-face { font-family: "Spectral SC"; font-weight: 600; font-display: swap; src: url("../font/spectral-sc-600.woff2") format("woff2"); }
@font-face { font-family: "Spectral SC"; font-weight: 700; font-display: swap; src: url("../font/spectral-sc-700.woff2") format("woff2"); }
@font-face { font-family: "FontAwesome"; font-display: block; src: url("../font/fontawesome-webfont.woff2") format("woff2"); }

:root {
  --rosso: #a82120;
  --bordeaux: #852725;
  --oro: #d6b469;
  --testo: #5c5c5c;
  --titolo: #1c1c1c;
  --scuro: #262626;
  --nero: #111111;
  --serif: "Spectral SC", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0; background: #fff; color: var(--testo);
  font: 400 16px/1.7 var(--serif);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--bordeaux); }

.contenitore { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 16px; }
.stretto { max-width: 900px; }

/* ---------- Testata ---------- */

.testata {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  background: rgba(0,0,0,.65);
}
.testata-riga {
  max-width: 1170px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; min-height: 90px;
}
.marchio {
  display: flex; flex-direction: column; align-items: center;
  color: #fff; text-decoration: none; padding: 4px 0;
  font: 300 22px/1 var(--serif); letter-spacing: .02em;
}
.marchio img { width: 52px; height: 52px; margin-bottom: 2px; }

.menu { display: flex; gap: 6px; }
.menu a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 8px 12px;
}
.menu a:hover { color: var(--oro); }
.menu a.riservata { color: var(--oro); }
.menu a.riservata:hover { color: #fff; }

/* Telefono: le voci diventano una fila scorrevole sotto il logo (niente tendina, niente script). */
@media (max-width: 899px) {
  html { scroll-padding-top: 120px; }
  .testata { background: rgba(0,0,0,.85); }
  .testata-riga { flex-direction: column; align-items: stretch; padding: 0; min-height: 0; }
  .marchio { flex-direction: row; gap: 10px; padding: 8px 16px; }
  .marchio img { width: 40px; height: 40px; margin: 0; }
  .menu {
    gap: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
    border-top: 1px solid rgba(255,255,255,.12); padding: 0 6px;
  }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { flex: 0 0 auto; font-size: 15px; padding: 10px; }
}

/* Pulsante Facebook laterale, come sul vecchio sito */
.facebook {
  position: fixed; right: 10px; top: 130px; z-index: 9;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.facebook img { width: 44px; height: auto; }
@media (max-width: 899px) { .facebook { top: auto; bottom: 16px; } .facebook img + img { display: none; } }

/* ---------- Copertina ---------- */

.copertina {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 120px 16px 60px;
  background: #000 url("../img/banner.jpg") 50% 0 / cover no-repeat;
}
.copertina h1 {
  margin: 0; color: #fff; font-weight: 400;
  font-size: clamp(34px, 6.5vw, 64px); line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

/* Fondo fisso solo dove funziona bene (su iPhone/Android "fixed" va a scatti o non va). */
@media (min-width: 900px) and (hover: hover) {
  .copertina, .numeri { background-attachment: fixed; }
}

/* ---------- Chi siamo ---------- */

.chi-siamo {
  position: relative; padding: 90px 0 80px;
  background: #fff;
}
.chi-siamo::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/prima-scelta1.png") center / 303px no-repeat;
  opacity: .1; pointer-events: none;
}
.chi-siamo .contenitore { position: relative; }
.chi-siamo h2 {
  margin: 0 0 24px; text-align: center; color: var(--titolo);
  font-weight: 300; font-size: 36px; line-height: 1.5;
}
.chi-siamo p { text-align: justify; margin: 0 0 1em; }
.chi-siamo strong { color: var(--bordeaux); font-size: 1.2em; font-weight: 700; }

/* ---------- Clienti (fascia bordeaux) ---------- */

.clienti { background: var(--bordeaux); color: #fff; padding: 44px 0; }
.clienti p { margin: 0; font-size: 18px; line-height: 1.75; letter-spacing: .02em; text-align: center; }
.clienti strong { font-weight: 700; }

/* ---------- Cosa facciamo ---------- */

.cosa-facciamo { padding: 70px 0 40px; }
.servizi {
  list-style: none; margin-top: 0; margin-bottom: 0;
  display: grid; gap: 30px 30px; grid-template-columns: repeat(3, 1fr);
}
.servizi li { display: flex; align-items: center; gap: 22px; min-height: 110px; }
.servizi p { margin: 0; flex: 1; text-align: center; font-size: 15px; line-height: 1.6; }
.icona {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: var(--rosso); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: normal 18px/1 FontAwesome; font-style: normal;
}
.cosa-facciamo .nota { margin: 24px auto 0; font-size: 14px; text-align: right; }
@media (max-width: 899px) { .servizi { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .servizi { grid-template-columns: 1fr; gap: 12px; }
  .servizi li { min-height: 0; }
  .servizi p { text-align: left; }
}

/* ---------- Come agiamo ---------- */

.come-agiamo { padding: 70px 0; background: #f5f1ea; }
.come-agiamo h2 { margin: 0 0 24px; text-align: center; color: var(--titolo); font-weight: 300; font-size: 36px; line-height: 1.5; }
.come-agiamo p { text-align: justify; margin: 0 0 1em; }
.come-agiamo strong { color: var(--bordeaux); font-weight: 700; }

/* ---------- Numeri ---------- */

.numeri {
  padding: 60px 0;
  background:
    linear-gradient(rgba(110,22,20,.62), rgba(110,22,20,.62)),
    url("../img/banner.jpg") 50% 0 / cover no-repeat;
  color: #fff;
}
.cifre {
  margin-top: 0; margin-bottom: 0;
  display: grid; gap: 30px 10px; grid-template-columns: repeat(4, 1fr);
}
.cifre div { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; text-align: center; }
.cifre dd { margin: 0; font: 700 35px/60px Arial, Helvetica, sans-serif; color: #fff; }
.cifre dt { margin-top: 18px; font-size: 16px; line-height: 1.6; max-width: 190px; }

@media (min-width: 900px) { .cifre { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px) { .cifre { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cifre dd { font-size: 30px; line-height: 44px; } .cifre dt { margin-top: 6px; font-size: 15px; } }

/* ---------- Contatti ---------- */

.contatti { background: var(--scuro); color: #fff; padding: 60px 0; }
.contatti-riga { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr; align-items: start; }
@media (max-width: 899px) { .contatti-riga { grid-template-columns: 1fr; } }

.sede { text-align: center; }
.sede img { width: 150px; height: auto; display: block; margin: 0 auto 10px; }
.sede p { margin: 4px 0; font-size: 16px; }
.sede .ragione { font-weight: 700; font-size: 18px; }
.sede .grande { font-size: 18px; }
.sede a { color: #fff; text-decoration: none; text-transform: lowercase; }
.sede a:hover { color: var(--oro); }
.sede .link-riservata { margin-top: 18px; }
.sede .link-riservata a { color: var(--oro); text-transform: none; border-bottom: 1px solid var(--oro); }

.modulo label { display: block; font-size: 13px; color: #9a9a9a; margin-bottom: 12px; }
.modulo input, .modulo textarea {
  display: block; width: 100%; margin-top: 2px; padding: 7px 9px;
  font: 400 15px/1.5 var(--serif); color: #333;
  background: #fff; border: 1px solid var(--rosso); border-radius: 5px;
}
.modulo textarea { resize: vertical; }
.modulo input:focus, .modulo textarea:focus { outline: 2px solid var(--oro); outline-offset: 1px; }
.modulo button {
  font: 400 14px/1 var(--serif); color: #fff; cursor: pointer;
  background: #e74c3c; border: 0; border-radius: 12px; padding: 6px 12px;
}
.modulo button:hover { background: var(--rosso); }
.trappola { position: absolute !important; left: -9999px; }

/* Esito dell'invio: contatti.php torna qui con #inviato o #errore nell'indirizzo. */
.avviso { display: none; margin: 0 0 16px; padding: 10px 14px; border-radius: 5px; font-size: 15px; }
.avviso:target { display: block; }
.avviso.ok { background: #2f5d34; }
.avviso.ko { background: var(--rosso); }

/* ---------- Piede ---------- */

.piede { background: var(--nero); color: #ddd; font-size: 14px; padding: 20px 0; }
