/* sogecasrl.it — sito rifatto come su Wix (30/11/2026)
   Computer (da 1000 px): impaginazione fissa su 980 px come Wix, elementi nelle stesse posizioni.
   Telefono (sotto 1000 px): le colonne una sotto l'altra. Nessuno script: gli ingrandimenti usano l'attributo HTML "popover". */

@font-face {
  font-family: "SOGECA Heros";
  src: url("/fonts/sogeca-heros-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Light";
  src: url("/fonts/barlow-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
:root {
  --rosso: #f00c0c;          /* rosso dei bordi e delle linee su Wix: 240,12,12 */
  --grigio: #605e5e;         /* testo (colore 14 della tavolozza Wix) */
  --scuro: #2f2e2e;          /* testo scuro (colore 15) */
  --chiaro: #cccccc;         /* menu e bottone al passaggio del mouse (colore 12) */
  --testo: "SOGECA Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --din: "Barlow Light", "DIN Next LT Pro", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--grigio); font-family: var(--testo); font-size: 17px; font-synthesis: weight style; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, h5, h6, ul, ol, figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
img { border: 0; }
:focus-visible { outline: 2px solid var(--scuro); outline-offset: 2px; }

.salta { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #116dff; padding: 6px 10px; font: 14px Helvetica, Arial, sans-serif; }
.salta:focus { left: 8px; }

/* avviso "sito in aggiornamento" */
.avviso { position: relative; z-index: 4; background: var(--grigio); color: #fff; text-align: center; font-size: 15px; line-height: 20px; letter-spacing: .02em; padding: 9px 16px; }
.avviso b { font-weight: bold; }
.avviso a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.55); white-space: nowrap; }
.avviso a:hover { border-bottom-color: #fff; }

/* testata come Wix: bianca, ombra, riga rossa di 3 px */
.testata { position: relative; z-index: 3; background: #fff; border-bottom: 3px solid var(--rosso);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6), inset 0 -1px 1px rgba(0,0,0,.6), 0 0 5px rgba(0,0,0,.6); }
.testata-in { position: relative; width: 980px; height: 102px; margin: 0 auto; }
.logo { position: absolute; left: -193px; top: 9px; width: 194px; height: 75px; }
.logo img { display: block; width: 194px; height: 75px; }
.menu { position: absolute; left: 0; top: 32px; width: 980px; text-align: center; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; white-space: nowrap; }
.menu li { flex: 1 1 auto; padding: 0 15px; text-align: center; }   /* come Wix: lo spazio in più è diviso fra le voci, che riempiono i 980 px */
.menu a { display: block; border-top: 1px solid var(--grigio); padding: 8px; font-size: 16px; line-height: 25px; color: var(--grigio); }
.menu a[aria-current] { border-top-width: 4px; padding-top: 5px; color: var(--scuro); }
.menu a:hover { border-top-width: 4px; padding-top: 5px; color: var(--chiaro); }

/* corpo della pagina */
.pagina { position: relative; background: #e6e6e6; overflow: hidden; overflow: clip; }
.pagina.sfondo-bianco { background: #fff; }
.palco { position: relative; width: 980px; height: var(--altezza); margin: 0 auto; }
.el { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h, auto); z-index: 1; }
.sfondo, .disegno { z-index: 0; display: block; }
.sfondo { object-fit: fill; }

/* testi */
.testo { font-family: var(--testo); color: var(--grigio); }
.testo ul { list-style: disc; }
.testo b { font-weight: bold; }
.testo a:hover { opacity: .75; }

/* foto con cornice rossa di 2 px come su Wix */
.cornice { display: block; margin: 0; padding: 0; border: 2px solid var(--rosso); background: var(--rosso); overflow: hidden; font: inherit; color: inherit; text-align: center; }
button.cornice { cursor: pointer; -webkit-appearance: none; appearance: none; border-radius: 0; }
.cornice img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cornice.stira img { object-fit: fill; }
.cornice.contieni { border: 0; background: transparent; padding: 5px 5px 0; }
.cornice.contieni img { object-fit: contain; }
.segnaposto { background: #fff; display: flex; align-items: center; justify-content: center; }
.segnaposto span { font-size: 30px; letter-spacing: .12em; color: var(--scuro); }

.linea { height: 6px; border-top: 3px solid rgba(240,12,12,.65); }
.riquadro { border: 2px solid var(--rosso); }
.riquadro.sottile { border: 1px solid var(--scuro); }
.riquadro.bianco { background: #fff; }
.bottone { display: flex; align-items: center; justify-content: center; font-family: var(--din); font-weight: 300; font-size: 15px; line-height: 21px; color: var(--scuro); transition: color .4s ease; }
.bottone:hover { color: var(--chiaro); }
.mappa { display: block; }
.mappa img { display: block; width: 100%; height: 100%; }
.modulo { display: flex; align-items: center; justify-content: center; text-align: center; }
.modulo-t { font-size: 17px; line-height: 1.6; color: var(--scuro); }
.modulo-t a { border-bottom: 1px solid var(--rosso); }
.gruppo .el { z-index: 1; }

/* piede come Wix + dati societari */
.piede { position: relative; z-index: 2; background: #fff; border-top: 3px solid var(--rosso); color: var(--grigio); }
.piede-in { position: relative; width: 980px; height: 52px; margin: 0 auto; }
.piede .copy, .piede .legale { position: absolute; top: 28px; font-size: 14px; line-height: 18px; white-space: nowrap; }
.piede .copy { left: 0; }
.piede .legale { left: 419px; }
.piede .legale a:hover, .piede .dati a:hover { color: var(--scuro); }
.piede .fb { position: absolute; left: 872px; top: 24px; width: 26px; height: 26px; }
.piede .fb img { display: block; width: 26px; height: 26px; }
.piede .dati { width: 980px; margin: 0 auto; padding: 4px 0 16px; font-size: 12px; line-height: 18px; }

/* ingrandimento delle foto (come la finestra di Wix: fondo nero al 90%, didascalia bianca, X in alto a destra) */
.zoom { margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; max-width: none; max-height: none; color: #fff; }
.zoom::backdrop { background: rgba(0,0,0,.9); }
.zoom figure { display: flex; flex-direction: column; align-items: center; }
.zoom img { display: block; width: auto; height: auto; max-width: calc(100vw - 311px); max-height: calc(100vh - 173px); max-height: calc(100dvh - 173px); background: #222; }
.zoom figcaption { margin-top: 20px; font: 100 16px/18px "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .2px; text-align: center; color: #fff; }
.zoom-x { position: fixed; top: 50px; right: 50px; width: 26px; height: 26px; padding: 4px; margin: 0; border: 0; background: transparent; cursor: pointer; line-height: 0; }
.zoom-x svg { display: block; }

/* ---------------------------------------------------------------- telefono e finestre strette */
@media (max-width: 999px) {
  body { font-size: 16px; }
  .avviso { font-size: 14px; padding: 8px 12px; }
  .testata-in { width: auto; height: auto; padding: 10px 10px 2px; }
  .logo { position: static; display: block; margin: 0 auto 8px; }
  .menu { position: static; width: auto; }
  .menu ul { white-space: normal; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 10px; padding-bottom: 8px; }
  .menu li { flex: none; }
  .menu li { padding: 0; }
  .menu a { font-size: 13px; line-height: 20px; padding: 6px 2px 7px; letter-spacing: .01em; }
  .menu a[aria-current], .menu a:hover { padding-top: 3px; }

  .pagina { background: #ececec url("/img/comuni/sfondo-gru.jpg") 30% 0 / 260% auto no-repeat; }
  .pagina.sfondo-bianco { background: #fff; }
  .palco { width: auto; height: auto; padding: 28px 16px 36px; text-align: center; }
  .el { position: relative; left: auto; top: auto; z-index: auto; }
  .sfondo { display: none; }
  .disegno { width: 100%; max-width: 560px; height: auto; margin: 0 auto 20px; }
  .testo { width: auto; max-width: 640px; height: auto; margin: 0 auto 18px; text-align: left; }
  .testo p, .testo h4, .testo h6 { overflow-wrap: anywhere; }
  .testo [style*="justify"] { text-align: left !important; }   /* niente spazi larghi nel testo giustificato su schermi stretti */
  .linea { width: min(var(--w), 80%); margin: -8px auto 22px; }
  .foto { width: 100%; max-width: 560px; height: auto; aspect-ratio: var(--ar); margin: 0 auto 14px; }
  .foto img { height: 100%; }
  .logo-studio { display: inline-block; vertical-align: middle; margin: 8px 6px; }
  .riquadro { display: inline-block; vertical-align: top; margin: 0 6px 14px; max-width: calc(100% - 12px); }
  .riquadro > .testo { left: 0; width: 100%; }
  .riquadro.con-mappa { display: block; width: 100%; height: auto; aspect-ratio: auto; margin: 0 auto 18px; }
  .riquadro.con-mappa .mappa { position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 970/235; }
  .riquadro .el { position: absolute; left: var(--x); top: var(--y); margin: 0; }
  .riquadro.con-mappa .el { position: relative; left: auto; top: auto; }
  .riquadro .testo { width: var(--w); max-width: none; }
  .gruppo { display: inline-block; vertical-align: top; width: var(--w); height: var(--h); margin: 0 6px 18px; text-align: left; }
  .gruppo .el { position: absolute; left: var(--x); top: var(--y); margin: 0; }
  .gruppo .testo { width: var(--w); }
  .bottone { width: var(--w); margin: 8px auto 0; }
  .modulo { width: auto; height: auto; padding: 18px 8px; }
  .mappa { width: 100%; height: auto; aspect-ratio: var(--ar); margin: 0 auto 18px; }
  .piede-in { width: auto; height: auto; padding: 14px 16px 2px; text-align: center; }
  .piede .copy, .piede .legale, .piede .fb { position: static; display: block; white-space: normal; margin: 0 auto 6px; }
  .piede .dati { width: auto; padding: 4px 16px 20px; text-align: center; }
  .zoom img { max-width: calc(100vw - 24px); max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); }
  .zoom-x { top: 14px; right: 14px; }
}

/* pagine nuove (privacy, 404): testo in colonna, stesso stile dei titoli di Wix */
.palco.flusso { height: auto; padding: 76px 0 96px; }
.titolo-flusso { margin: 0 auto; text-align: center; font-size: 21px; line-height: normal; font-weight: bold; color: var(--grigio); }
.linea-flusso { width: 260px; height: 6px; margin: 6px auto 34px; border-top: 3px solid rgba(240,12,12,.65); }
.testo-flusso { width: 660px; margin: 0 auto; padding: 26px 34px; background: rgba(255,255,255,.82); font-size: 17px; line-height: 1.5; color: var(--scuro); }
.testo-flusso p + p { margin-top: 12px; }
.testo-flusso a { border-bottom: 1px solid var(--rosso); }
.nf-menu a { border-bottom: 0; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; }
@media (max-width: 999px) {
  .palco.flusso { padding: 32px 16px 40px; }
  .testo-flusso { width: auto; max-width: 640px; padding: 18px 16px; text-align: left; }
}
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
