/* Nova Ristrutturazioni — copia del design ChatGPT (design-computer.webp, 1070 px).
   Da computer ogni misura è quella del design × --s: a 1440 px il design è a dimensione vera. */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --verde-scuro: #0E392E;
  --verde: #134F3D;
  --verde-tri: #136D48;
  --rosso: #E31C29;
  --rosso-tri: #CD1F2F;
  --testo: #31453F;
  --grigio: #636773;
  --grigio-chiaro: #A0A2A8;
  --linea: #DADDDC;
  --bianco: #FFFFFF;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s: min(calc(100vw / 1070), 1.3458px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bianco); color: var(--testo); font-family: var(--sans); line-height: 1.4; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
p, summary { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.salta { position: absolute; left: -9999px; top: 0; background: var(--verde); color: #fff; padding: 10px 16px; z-index: 100; }
.salta:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; }

.pagina { max-width: 1440px; margin: 0 auto; overflow: hidden; }
.tricolore { height: calc(3 * var(--s)); min-height: 3px; background: linear-gradient(90deg, var(--verde-tri) 0 36%, #E6E8E7 36% 64%, var(--rosso-tri) 64% 100%); }

/* ── header ── */
.testata { display: flex; align-items: center; justify-content: space-between; height: calc(73 * var(--s)); padding: 0 calc(50 * var(--s)) 0 calc(44 * var(--s)); }
.testata .logo img { height: calc(56 * var(--s)); width: auto; }
.menu { display: flex; align-items: center; gap: calc(31 * var(--s)); font-size: calc(12.5 * var(--s)); }
.menu a { text-decoration: none; color: #3D4350; transition: color .2s; }
.menu a:hover { color: var(--verde); }
.menu .menu-cta { margin-left: calc(22 * var(--s)); color: var(--rosso); padding-bottom: calc(5 * var(--s)); border-bottom: 1.5px solid var(--rosso); display: inline-flex; align-items: center; gap: calc(8 * var(--s)); }
.menu .menu-cta:hover { color: var(--rosso); }
.freccia { width: 0.9em; height: 0.9em; flex: none; transition: transform .25s ease; }
a:hover > .freccia { transform: translate(2px, -2px); }

/* ── apertura ── */
.apertura { display: grid; grid-template-columns: calc(377 * var(--s)) 1fr; }
.apertura-testo { padding: calc(28 * var(--s)) calc(8 * var(--s)) 0 calc(48 * var(--s)); }
.occhiello { font-size: calc(9.5 * var(--s)); letter-spacing: .32em; text-transform: uppercase; color: var(--rosso); font-weight: 500; }
.apertura h1 { font-family: var(--serif); font-weight: 400; color: var(--verde-scuro); font-size: calc(46 * var(--s)); line-height: 1; letter-spacing: -.015em; }
.apertura h1 .occhiello { display: block; font-family: var(--sans); line-height: 1.2; letter-spacing: .32em; margin-bottom: calc(22 * var(--s)); }
.apertura h1 em { font-style: italic; }
.apertura-sotto { font-size: calc(17 * var(--s)); line-height: 1.38; color: #22312C; margin-top: calc(18 * var(--s)); }
.bottone { display: inline-flex; align-items: center; gap: calc(14 * var(--s)); background: var(--rosso); color: #fff; text-decoration: none; font-size: calc(15 * var(--s)); height: calc(40 * var(--s)); padding: 0 calc(27 * var(--s)); border-radius: 2px; margin-top: calc(22 * var(--s)); transition: background .2s, transform .2s; }
.bottone:hover { background: #C8121F; transform: translateY(-1px); }
.apertura-nota { font-size: calc(11 * var(--s)); color: var(--grigio); margin-top: calc(13 * var(--s)); }
.apertura-nota a { color: var(--verde); text-underline-offset: 2px; white-space: nowrap; }
.unariga { white-space: nowrap; }
.nascosto { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.apertura-foto { position: relative; height: calc(420 * var(--s)); }
.apertura-foto img { width: 100%; height: 100%; object-fit: cover; }
.didascalia-foto { position: absolute; right: calc(18 * var(--s)); bottom: calc(7 * var(--s)); font-size: calc(8.5 * var(--s)); color: #2A2F2D; background: rgba(255, 255, 255, .55); padding: 1px 6px; border-radius: 2px; }

/* ── servizi ── */
.servizi { margin-top: calc(11 * var(--s)); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: calc(22 * var(--s)) 0 calc(21 * var(--s)) calc(48 * var(--s)); display: grid; grid-template-columns: calc(228 * var(--s)) calc(259 * var(--s)) calc(262 * var(--s)) 1fr; }
.servizio { padding: calc(1 * var(--s)) calc(16 * var(--s)) calc(2 * var(--s)) 0; }
.servizio + .servizio { border-left: 1px solid var(--linea); padding-left: calc(43 * var(--s)); }
.numero { font-family: var(--serif); color: var(--rosso); font-size: calc(15.5 * var(--s)); line-height: 1; font-weight: 500; font-variant-numeric: lining-nums; }
.servizio h3 { font-family: var(--serif); font-weight: 400; color: var(--verde-scuro); font-size: calc(28 * var(--s)); line-height: 1.05; margin-top: calc(6 * var(--s)); letter-spacing: -.01em; }
.servizio p { font-size: calc(15 * var(--s)); line-height: 1.3; color: #3A4A45; margin-top: calc(5 * var(--s)); max-width: calc(170 * var(--s)); }

/* ── prima e dopo ── */
.idee { padding: calc(20 * var(--s)) calc(47 * var(--s)) calc(20 * var(--s)); border-bottom: 1px solid var(--linea); }
.idee-testa { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.idee h2, .metodo h2, .sezione h2 { font-family: var(--serif); font-weight: 400; color: var(--verde-scuro); letter-spacing: -.015em; }
.idee h2 { font-size: calc(57.3 * var(--s)); line-height: 1; margin-top: calc(10 * var(--s)); }
.idee-testa > p { font-size: calc(14 * var(--s)); line-height: 1.4; color: #2E3B37; padding-bottom: calc(12 * var(--s)); max-width: calc(330 * var(--s)); }
.coppie { display: grid; grid-template-columns: 1fr 1fr; gap: calc(28 * var(--s)); margin-top: calc(12 * var(--s)); }
.coppia-foto { display: grid; grid-template-columns: 1fr 1fr; gap: calc(2 * var(--s)); }
.coppia-foto figure { margin: 0; position: relative; height: calc(216 * var(--s)); overflow: hidden; }
.coppia-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.coppia:hover .coppia-foto img { transform: scale(1.025); }
.etichetta { position: absolute; top: calc(11 * var(--s)); left: calc(11 * var(--s)); background: #fff; color: #1D2623; font-size: calc(10.5 * var(--s)); padding: calc(3 * var(--s)) calc(11 * var(--s)); border-radius: 2px; }
.coppia-nome { display: flex; align-items: center; gap: calc(14 * var(--s)); margin-top: calc(11 * var(--s)); font-family: var(--serif); font-size: calc(17.5 * var(--s)); color: var(--verde-scuro); }
.coppia-nome::after { content: ""; order: 2; flex: 1; height: 1px; background: #C9CDCB; }
.coppia-nome .freccia { order: 3; color: var(--rosso); width: calc(16 * var(--s)); height: calc(16 * var(--s)); }
.nota-ia { text-align: center; font-size: calc(9.5 * var(--s)); color: var(--grigio-chiaro); margin-top: calc(14 * var(--s)); }

/* ── metodo ── */
.metodo { display: grid; grid-template-columns: calc(534 * var(--s)) 1fr; padding: calc(16 * var(--s)) calc(47 * var(--s)) calc(16 * var(--s)) calc(48 * var(--s)); }
.metodo-testa { padding-right: calc(30 * var(--s)); border-right: 1px solid var(--linea); padding-top: calc(4 * var(--s)); padding-bottom: calc(6 * var(--s)); }
.metodo h2 { font-size: calc(55.4 * var(--s)); line-height: .98; }
.metodo-testa > p { font-size: calc(17 * var(--s)); color: #2E3B37; margin-top: calc(12 * var(--s)); }
.passi { list-style: none; margin: 0; padding: 0 0 0 calc(38 * var(--s)); }
.passi li { display: grid; grid-template-columns: calc(58 * var(--s)) 1fr; align-items: start; }
.passi li + li .passo-testo { border-top: 1px solid var(--linea); }
.passi .numero { font-size: calc(29 * var(--s)); font-weight: 400; padding-top: calc(7 * var(--s)); }
.passo-testo { padding: calc(8 * var(--s)) 0 calc(10 * var(--s)); }
.passo-testo h3 { font-weight: 500; font-size: calc(15 * var(--s)); color: #16221E; }
.passo-testo p { font-size: calc(13 * var(--s)); color: #4F5A57; margin-top: calc(2 * var(--s)); }

/* ── sezioni in più del copy, con le forme del design ── */
.impresa, .domande { border-top: 1px solid var(--linea); padding-top: calc(22 * var(--s)); padding-bottom: calc(22 * var(--s)); }
.impresa-testo { padding-left: calc(45 * var(--s)); align-self: center; }
.impresa-testo p { font-size: calc(17 * var(--s)); line-height: 1.4; color: #2E3B37; max-width: calc(430 * var(--s)); }
.impresa-testo p + p { margin-top: calc(10 * var(--s)); }
.servizi.due { margin-top: 0; grid-template-columns: calc(487 * var(--s)) 1fr; padding-top: calc(24 * var(--s)); padding-bottom: calc(26 * var(--s)); }
.servizi.due h2 { font-family: var(--serif); font-weight: 400; color: var(--verde-scuro); font-size: calc(28 * var(--s)); line-height: 1.05; letter-spacing: -.01em; }
.servizi.due p { max-width: calc(440 * var(--s)); margin-top: calc(8 * var(--s)); }
.servizi.due p + p { margin-top: calc(4 * var(--s)); }
.faq { padding-left: calc(45 * var(--s)); }
.faq details + details { border-top: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(10 * var(--s)) 0; font-size: calc(15 * var(--s)); font-weight: 500; color: #16221E; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: calc(24 * var(--s)); line-height: 1; color: var(--rosso); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--verde); }
.faq details p { font-size: calc(13.5 * var(--s)); line-height: 1.45; color: #4F5A57; padding: 0 calc(40 * var(--s)) calc(12 * var(--s)) 0; }

/* ── pagine interne e collegamenti (pezzi della landing) ── */
.apertura.interna h1 { font-size: calc(40 * var(--s)); line-height: 1.04; }
.apertura.interna .apertura-sotto + .apertura-sotto { margin-top: calc(10 * var(--s)); }
.apertura-azioni { display: flex; flex-wrap: wrap; gap: calc(10 * var(--s)); margin-top: calc(22 * var(--s)); }
.apertura-azioni .bottone { margin-top: 0; }
.bottone.contorno { background: transparent; color: var(--verde); border: 1.5px solid var(--verde); }
.bottone.contorno:hover { background: var(--verde); color: #fff; }
.impresa .metodo-testa h2 { font-size: calc(40 * var(--s)); line-height: 1.02; }
.metodo-testa .numero { font-size: calc(20 * var(--s)); margin-bottom: calc(10 * var(--s)); }
.link-freccia { display: inline-flex; align-items: center; gap: calc(8 * var(--s)); margin-top: calc(16 * var(--s)); font-size: calc(14 * var(--s)); color: var(--verde); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: calc(3 * var(--s)); }
.link-freccia .freccia { color: var(--rosso); }
.link-freccia:hover > .freccia { transform: translateX(3px); }
.servizio h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s ease; }
.servizio h3 a:hover { background-size: 100% 1px; }
.menu a[aria-current="page"] { color: var(--verde); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.piede-dati .piede-voci { font-size: calc(12 * var(--s)); margin-top: calc(8 * var(--s)); }
.piede-voci a { color: inherit; text-decoration: none; }
.piede-voci a:hover { color: var(--verde); text-decoration: underline; }

/* ── fascia finale ── */
.fascia { margin: 0 calc(26 * var(--s)); background: var(--verde); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: calc(136 * var(--s)); padding: calc(12 * var(--s)) calc(39 * var(--s)) calc(10 * var(--s)); }
.fascia h2 { font-family: var(--serif); font-weight: 400; font-size: calc(49.2 * var(--s)); line-height: .93; letter-spacing: -.012em; }
.fascia p { font-size: calc(15 * var(--s)); margin-top: calc(9 * var(--s)); color: #E4EDE9; }
.fascia p + p { margin-top: calc(3 * var(--s)); }
.fascia-azioni { display: flex; flex-direction: column; gap: calc(10 * var(--s)); }
.bottone-chiaro { display: inline-flex; align-items: center; justify-content: center; gap: calc(14 * var(--s)); min-width: calc(208 * var(--s)); height: calc(47 * var(--s)); padding: 0 calc(24 * var(--s)); border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 3px; color: #fff; text-decoration: none; font-size: calc(16 * var(--s)); transition: background .2s, color .2s; }
.bottone-chiaro .freccia { color: #F0525C; }
.bottone-chiaro:hover { background: #fff; color: var(--verde); }

/* ── footer ── */
.piede { display: flex; justify-content: space-between; align-items: flex-start; padding: calc(12 * var(--s)) calc(48 * var(--s)) calc(18 * var(--s)); }
.piede .logo img { height: calc(54 * var(--s)); width: auto; }
.piede-dati { text-align: right; }
.piede-dati .piede-sito { font-family: var(--serif); font-size: calc(26 * var(--s)); color: var(--verde-scuro); font-weight: 600; }
.piede-dati p { font-size: calc(12.5 * var(--s)); color: #3A4642; margin-top: calc(3 * var(--s)); }
.piede-dati .piede-piccolo { font-size: calc(10.5 * var(--s)); color: var(--grigio); }
.piede-dati .piede-firma { font-size: calc(10 * var(--s)); color: var(--grigio-chiaro); margin-top: calc(6 * var(--s)); }
.piede-dati .piede-firma a { color: inherit; }

/* ── banner cookie (una riga) ── */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 760px; margin: 0 auto; background: #fff; color: #23302C; border: 1px solid var(--linea); box-shadow: 0 8px 28px rgba(14, 57, 46, .14); border-radius: 4px; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; font-size: 13px; }
.cookie[hidden] { display: none; }
.cookie p { flex: 1; }
.cookie a { color: var(--verde); }
.cookie button { font: inherit; background: var(--verde); color: #fff; border: 0; border-radius: 3px; padding: 7px 14px; cursor: pointer; }

/* ── entrate morbide (solo con JS) ── */
.js .entra { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .entra.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .entra { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── pagine di servizio (privacy, 404) ── */
.documento { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; }
.documento h1 { font-family: var(--serif); font-weight: 400; color: var(--verde-scuro); font-size: 52px; line-height: 1; margin-top: 12px; }
.documento h2 { font-family: var(--serif); font-weight: 400; color: var(--verde-scuro); font-size: 28px; margin-top: 34px; }
.documento p { font-size: 16px; line-height: 1.6; margin-top: 12px; }
.documento .bottone { height: 48px; font-size: 16px; padding: 0 26px; margin-top: 26px; gap: 12px; }

/* ════ telefono ════ */
@media (max-width: 760px) {
  .tricolore { height: 3px; }
  .testata { flex-wrap: wrap; height: auto; padding: 12px 18px 0; }
  .testata .logo img { height: 44px; }
  .menu { order: 3; width: 100%; margin-top: 10px; padding: 11px 0 12px; border-top: 1px solid var(--linea); justify-content: space-between; gap: 16px; overflow-x: auto; font-size: 14px; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { white-space: nowrap; }
  .testata { position: relative; }
  .menu .menu-cta { position: absolute; top: 24px; right: 18px; margin-left: 0; padding-bottom: 3px; gap: 6px; font-size: 15px; }
  .menu a[aria-current="page"] { text-underline-offset: 5px; }
  .apertura.interna h1 { font-size: 38px; }
  .apertura-azioni { gap: 10px; margin-top: 22px; }
  .impresa .metodo-testa h2 { font-size: 34px; }
  .metodo-testa .numero { font-size: 18px; margin-bottom: 8px; }
  .link-freccia { font-size: 15px; gap: 8px; margin-top: 16px; }
  .piede-dati .piede-voci { font-size: 14px; }

  .apertura { grid-template-columns: 1fr; }
  .apertura-testo { padding: 22px 20px 26px; }
  .occhiello { font-size: 11px; }
  .apertura h1 { font-size: 44px; }
  .apertura h1 .occhiello { margin-bottom: 16px; }
  .apertura-sotto { font-size: 17px; margin-top: 16px; }
  .bottone { font-size: 16px; height: 50px; padding: 0 24px; margin-top: 22px; gap: 12px; }
  .apertura-nota { font-size: 13px; margin-top: 12px; }
  .apertura-foto { height: auto; aspect-ratio: 4 / 3; }
  .didascalia-foto { font-size: 10px; right: 10px; bottom: 8px; }

  .servizi { margin-top: 0; grid-template-columns: 1fr 1fr; padding: 0; }
  .servizio, .servizio + .servizio { padding: 20px 18px 22px; border-left: 0; }
  .servizio:nth-of-type(even) { border-left: 1px solid var(--linea); }
  .servizio:nth-of-type(n+3) { border-top: 1px solid var(--linea); }
  .numero { font-size: 16px; }
  .servizio h3 { font-size: 28px; }
  .servizio p { font-size: 15px; max-width: none; }

  .idee { padding: 30px 20px 26px; }
  .idee-testa { display: block; }
  .idee h2 { font-size: 46px; }
  .idee-testa p { font-size: 15px; padding: 10px 0 0; }
  .coppie { grid-template-columns: 1fr; gap: 26px; margin-top: 20px; }
  .coppia-foto { gap: 2px; }
  .coppia-foto figure { height: auto; aspect-ratio: 1 / 1; }
  .etichetta { font-size: 12px; top: 10px; left: 10px; padding: 3px 10px; }
  .coppia-nome { font-size: 21px; gap: 12px; margin-top: 10px; }
  .coppia-nome .freccia { width: 18px; height: 18px; }
  .nota-ia { font-size: 12px; margin-top: 18px; }

  .metodo { grid-template-columns: 1fr; padding: 30px 20px 26px; }
  .metodo-testa { border-right: 0; padding: 0 0 22px; border-bottom: 1px solid var(--linea); }
  .metodo h2 { font-size: 44px; }
  .metodo-testa > p { font-size: 16px; }
  .passi { padding: 6px 0 0; }
  .passi li { grid-template-columns: 52px 1fr; }
  .passi .numero { font-size: 30px; padding-top: 10px; }
  .passo-testo { padding: 12px 0 14px; }
  .passo-testo h3 { font-size: 17px; }
  .passo-testo p { font-size: 15px; }

  .impresa, .domande { padding: 30px 20px 26px; }
  .impresa-testo { padding: 18px 0 0; }
  .impresa-testo p { font-size: 16px; max-width: none; }
  .idee-testa > p { max-width: none; }
  .servizi.due p { max-width: none; }
  .servizi.due { grid-template-columns: 1fr; padding: 0; }
  .servizi.due .servizio { padding: 26px 20px; border-left: 0; }
  .servizi.due .servizio + .servizio { border-top: 1px solid var(--linea); }
  .servizi.due h2 { font-size: 30px; }
  .servizi.due p { font-size: 16px; }
  .faq { padding: 10px 0 0; }
  .faq summary { font-size: 16px; padding: 14px 0; }
  .faq summary::after { font-size: 26px; }
  .faq details p { font-size: 15px; padding: 0 0 14px; }
  .fascia { margin: 0 12px; flex-direction: column; align-items: flex-start; padding: 30px 22px 26px; gap: 22px; }
  .fascia h2 { font-size: 40px; }
  .fascia p { font-size: 16px; }
  .fascia-azioni { width: 100%; gap: 10px; }
  .bottone-chiaro { width: 100%; height: 52px; font-size: 17px; }

  .piede { flex-direction: column; gap: 18px; padding: 22px 20px 90px; }
  .piede .logo img { height: 48px; }
  .piede-dati { text-align: left; }
  .piede-dati .piede-sito { font-size: 24px; }
  .piede-dati p { font-size: 14px; }
  .piede-dati .piede-piccolo, .piede-dati .piede-firma { font-size: 13px; }

  .cookie { font-size: 13px; padding: 9px 10px 9px 14px; gap: 10px; }
  .documento h1 { font-size: 42px; }
}
