/* Siti Web Genova — foglio di stile unico
   Palette: rosso Genova (croce di San Giorgio), blu inchiostro di mare, bianco, grigio-azzurro. */
:root {
  --red: #C8102E;
  --red-deep: #9E0B22;
  --ink: #0E1B2B;
  --ink-soft: #3B4A5C;
  --paper: #FFFFFF;
  --mist: #E8EEF2;
  --mist-deep: #D3DDE4;
  --bar: 14px;                 /* spessore delle barre della croce */
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --wrap: 1280px;              /* larghezza massima del "foglio": oltre, il sito resta un oggetto definito su fondo grigio */
  --side: var(--gutter);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
/* il foglio: tutto il sito sta qui dentro, centrato; sugli schermi larghi i bordi lo delimitano */
.page { max-width: var(--wrap); margin: 0 auto; background: var(--paper); min-height: 100vh; }
@media (min-width: 1281px) { .page { border-left: 1px solid var(--mist-deep); border-right: 1px solid var(--mist-deep); } }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 100; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- barra di navigazione ---------- */
.topbar {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--side);
  border-bottom: 1px solid var(--mist-deep);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; background: var(--red);
  clip-path: polygon(38% 0, 62% 0, 62% 38%, 100% 38%, 100% 62%, 62% 62%, 62% 100%, 38% 100%, 38% 62%, 0 62%, 0 38%, 38% 38%); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; line-height: 0.95; letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-weight: 500; font-size: 0.97rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.nav-cta { background: var(--ink); color: #fff; padding: 10px 16px; }
.nav-cta:hover { background: var(--red); text-decoration: none !important; }
.nav-phone { text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
/* menu mobile: <details>, nessun JS */
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 8px 12px; border: 2px solid var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: var(--bar) solid var(--red); display: grid; padding: 8px var(--gutter) 16px; z-index: 20; }
.menu nav a { padding: 12px 0; border-bottom: 1px solid var(--mist-deep); text-decoration: none; font-weight: 600; font-size: 1.1rem; }

/* ---------- pulsanti ---------- */
.btn { display: inline-block; padding: 14px 22px; text-decoration: none; font-weight: 600; border: 2px solid transparent; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-quiet { border-color: var(--ink); color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.link-more { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--red); }

/* ---------- hero: la croce di San Giorgio come struttura ----------
   Griglia 2x2. Barra verticale = bordo sinistro di head+body; barra orizzontale = bordo inferiore di corner+head. */
.hero {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3.2fr);
  grid-template-rows: auto auto;
  padding: 0 var(--side);
}
.hero-corner { grid-column: 1; grid-row: 1; border-bottom: var(--bar) solid var(--red); }
.hero-head   { grid-column: 2; grid-row: 1; border-left: var(--bar) solid var(--red); border-bottom: var(--bar) solid var(--red); padding: clamp(48px, 9vw, 120px) 0 36px clamp(24px, 4vw, 56px); }
.hero-side   { grid-column: 1; grid-row: 2; padding: 32px clamp(20px, 3vw, 40px) 56px 0; align-self: start; }
.hero-body   { grid-column: 2; grid-row: 2; border-left: var(--bar) solid var(--red); padding: 32px 0 72px clamp(24px, 4vw, 56px); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 6.4rem); max-width: 14ch; }
.hero-body p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 52ch; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 8px; }
.hero-price span { font-size: 0.42em; font-weight: 500; letter-spacing: 0; margin-right: 0.15em; }
.hero-side p:not(.hero-price) { font-size: 0.95rem; color: var(--ink-soft); max-width: 22ch; }

/* ---------- servizi: lista con filetti, niente card ---------- */
.services { padding: 72px var(--side); background: var(--mist); }
.services h2 { margin-bottom: 40px; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; border-top: 1px solid var(--ink); }
.service-list li { padding: 24px 0 32px; border-bottom: 1px solid var(--mist-deep); }
.service-list h3 { margin-bottom: 10px; }
.service-list h3 a { text-decoration: none; }
.service-list h3 a:hover { color: var(--red); }
.service-list p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- lavori: striscia su fondo scuro ---------- */
.work { padding: 72px var(--side); background: var(--ink); color: #fff; }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.work-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-strip a { text-decoration: none; display: block; }
.work-strip img { border: 1px solid rgba(255,255,255,.15); }
.work-name { display: block; margin-top: 12px; font-weight: 600; }
.work-strip a:hover .work-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

/* ---------- metodo: sequenza numerata (è davvero una sequenza) ---------- */
.method { padding: 80px var(--side); display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); gap: 48px; }
.method-intro h2 { margin-bottom: 16px; }
.method-intro p { color: var(--ink-soft); margin-bottom: 20px; }
.method-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--ink); }
.method-steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 12rem 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--mist-deep); align-items: baseline; }
.method-steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--red); line-height: 1; }
.method-steps p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- fascia contatti ---------- */
.contact-band { padding: 80px var(--side); background: var(--red); color: #fff; }
.contact-band h2 { margin-bottom: 12px; }
.contact-band p { max-width: 48ch; }
.contact-phones { display: flex; flex-wrap: wrap; gap: 8px 32px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); margin: 20px 0 28px; }
.contact-phones a { text-decoration: none; }
.contact-phones a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- pagine interne ---------- */
.page-head { padding: clamp(48px, 8vw, 96px) var(--side) 40px; border-left: var(--bar) solid var(--red); margin-left: var(--side); padding-left: clamp(24px, 4vw, 56px); }
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); max-width: 16ch; }
.page-head .lead { font-size: 1.25rem; color: var(--ink-soft); margin-top: 20px; max-width: 52ch; }
.page-body { padding: 24px var(--side) 80px; }
.page-body h2 { font-size: 1.7rem; margin: 40px 0 12px; }
.prose p { margin-bottom: 1.1em; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 8px 0; border-bottom: 1px solid var(--mist-deep); }

.packages { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.packages li { padding: 20px 0 28px; border-bottom: 1px solid var(--mist-deep); }
.packages h3 { margin-bottom: 12px; }
.packages ul { padding-left: 1.1em; margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.packages ul li { padding: 3px 0; border: 0; }
.notes { font-size: 0.9rem; color: var(--ink-soft); margin-top: 24px; }

.grid-work { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; }
.grid-work a { text-decoration: none; display: block; }
.grid-work .ph { aspect-ratio: 770 / 533; background: var(--mist); border: 1px solid var(--mist-deep); display: grid; place-items: center; color: var(--ink-soft); font-size: 0.9rem; }
.grid-work img { border: 1px solid var(--mist-deep); }

.form { max-width: 560px; }
.form label { display: block; font-weight: 600; margin: 18px 0 6px; }
.form input, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--mist-deep); background: #fff; }
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form .errorlist { color: var(--red); list-style: none; padding: 0; margin: 4px 0 0; font-size: 0.92rem; }
.form button { margin-top: 24px; cursor: pointer; font: inherit; }
/* Honeypot: fuori dallo schermo invece che display:none, che i bot riconoscono. */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); }
.cf-turnstile { margin-top: 20px; }
.flash { list-style: none; margin: 0; padding: 14px var(--side); background: var(--mist); font-weight: 600; }
.contact-aside { background: var(--mist); padding: 28px; align-self: start; }
.contact-aside h2 { margin-top: 0; }
.contact-aside a { text-decoration: none; font-weight: 600; }

/* ---------- zone, blog, portfolio ---------- */
.zones { padding: 80px var(--side); display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); gap: 48px; border-top: 1px solid var(--mist-deep); }
.zone-group { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 10px; }
.zone-group + .zone-list { margin-bottom: 28px; }
.zone-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zone-list a { display: inline-block; padding: 8px 14px; border: 1px solid var(--ink); text-decoration: none; font-weight: 600; }
.zone-list a:hover { background: var(--ink); color: #fff; }
.area-grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 40px; border-top: 1px solid var(--ink); }
.area-grid li { padding: 20px 0 24px; border-bottom: 1px solid var(--mist-deep); }
.area-grid h3 { margin-bottom: 2px; }
.area-grid h3 a { text-decoration: none; }
.area-grid h3 a:hover { color: var(--red); }
.area-zone { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 8px; }
.area-grid p { font-size: 0.98rem; color: var(--ink-soft); }
.crumbs { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 16px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.near { color: var(--ink-soft); font-size: 0.95rem; }
.near a { text-decoration: none; font-weight: 600; }
.contact-aside h3 { margin-top: 20px; margin-bottom: 4px; font-size: 1.05rem; }
.service-list--page { grid-template-columns: repeat(2, 1fr); margin-bottom: 40px; }
.service-list--page h2 { font-size: 1.5rem; margin: 0 0 10px; }
.service-list--page h2 a { text-decoration: none; }
.work-meta { display: block; font-size: 0.9rem; color: var(--ink-soft); }
.work .work-meta { color: rgba(255,255,255,.65); }
.posts { padding: 72px var(--side); border-top: 1px solid var(--mist-deep); }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-list--page { grid-template-columns: 1fr; max-width: 720px; gap: 0; border-top: 1px solid var(--ink); }
.post-list--page li { padding: 24px 0; border-bottom: 1px solid var(--mist-deep); }
.post-list time { font-size: 0.9rem; color: var(--ink-soft); }
.post-list h3, .post-list h2 { margin: 6px 0 8px; font-size: 1.4rem; }
.post-list h3 a, .post-list h2 a { text-decoration: none; }
.post-list h3 a:hover, .post-list h2 a:hover { color: var(--red); }
.post-list p { color: var(--ink-soft); font-size: 1rem; }
.article { max-width: 68ch; }
.article h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.article h3 { margin: 28px 0 8px; }
.article img { margin: 24px 0; }
.empty { background: var(--mist); padding: 32px; max-width: 560px; }

/* ---------- listino: schede per livello + confronto ---------- */
.pricing { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--ink); }
.pricing h2 { margin-bottom: 8px; }
.pricing-note { color: var(--ink-soft); font-size: 0.95rem; max-width: 70ch; margin-bottom: 32px; }
.tiers { list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.tiers-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tier { position: relative; display: flex; flex-direction: column; padding: 24px 22px 26px; border: 1px solid var(--mist-deep); background: var(--paper); }
.tier--highlight { border: 2px solid var(--red); }
.tier-flag { position: absolute; top: -13px; left: 20px; background: var(--red); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 4px 10px; }
.tier h3 { font-size: 1.35rem; margin-bottom: 8px; }
.tier h4 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin: 18px 0 6px; }
.tier-price { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; margin: 0 0 8px; }
.tier-price span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; letter-spacing: 0; color: var(--ink-soft); margin-top: 6px; }
.tier-tagline { font-weight: 600; margin-bottom: 8px; }
.tier-who { font-size: 0.95rem; color: var(--ink-soft); }
.tier-gain, .tier-not { margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.tier-gain li { padding: 5px 0 5px 20px; position: relative; border-bottom: 1px solid var(--mist); }
.tier-gain li::before { content: "●"; color: var(--red); position: absolute; left: 0; top: 6px; font-size: 0.7rem; }
.tier-not li { padding: 4px 0 4px 20px; position: relative; color: var(--ink-soft); }
.tier-not li::before { content: "—"; position: absolute; left: 0; }
.tier .btn { margin-top: auto; text-align: center; }
.tier .btn { margin-top: 22px; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
.compare caption { text-align: left; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; padding: 0 0 14px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--mist-deep); vertical-align: top; }
.compare thead th { border-bottom: 2px solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.compare thead th span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); }
.compare thead th.is-highlight { color: var(--red); }
.compare tbody th { font-weight: 600; width: 32%; }
.compare .yes { color: var(--red); }
.compare .no { color: var(--mist-deep); }
.faq { max-width: 70ch; margin: 24px 0 0; }
.faq dt { font-weight: 600; margin-top: 22px; }
.faq dd { margin: 6px 0 0; color: var(--ink-soft); }

/* ---------- breadcrumb, NAP, mappa ---------- */
.breadcrumb { padding: 14px var(--side) 0; font-size: 0.9rem; color: var(--ink-soft); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--mist-deep); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.nap { font-style: normal; line-height: 1.6; }
.nap a { text-decoration: none; font-weight: 600; }
.footer-social a { margin-right: 14px; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; margin: 12px 0 16px; display: block; }
.jump a { margin-right: 6px; }

/* ---------- footer ---------- */
.footer { padding: 56px var(--side) 32px; background: var(--ink); color: #fff; font-size: 0.95rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 0.8fr; gap: 32px; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-bottom: 8px; }
.footer nav { display: grid; gap: 6px; }
.footer-legal { margin-top: 40px; color: rgba(255,255,255,.6); font-size: 0.85rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .service-list, .work-strip, .post-list, .tiers, .tiers-3 { grid-template-columns: repeat(2, 1fr); }
  .method, .zones { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu { display: block; }
  .nav-phone { margin-left: auto; }
  .menu { margin-left: 0; }
}
@media (max-width: 680px) {
  :root { --bar: 10px; }
  .topbar { gap: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-corner { display: none; }
  .hero-head { grid-column: 1; padding-top: 40px; }
  .hero-side { grid-column: 1; grid-row: 3; border-left: var(--bar) solid var(--red); padding: 8px 0 40px 20px; }
  .hero-body { grid-column: 1; grid-row: 2; padding: 24px 0 8px 20px; }
  .service-list, .work-strip, .two-col, .footer-grid, .post-list, .service-list--page, .tiers, .tiers-3 { grid-template-columns: 1fr; }
  .method-steps li { grid-template-columns: 2.5rem 1fr; }
  .method-steps li p { grid-column: 2; }
  .page-head { margin-left: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-cta { transition: background-color .15s ease, color .15s ease; }
}
