/*
Theme Name: OverdataSit
Theme URI: https://www.overdatasit.it/
Author: OverdataSit
Description: Tema istituzionale personalizzato per OverdataSit, servizi GIS e sistemi informativi territoriali.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: overdatasit
*/

:root {
  --paper: #f4f1ea;
  --ink: #191c1a;
  --muted: #626760;
  --wine: #8f1538;
  --wine-deep: #64102a;
  --yellow: #f6e82d;
  --line: rgba(25, 28, 26, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 92px;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
body.intro-active { overflow: hidden; }
.logo-intro { position: fixed; z-index: 99999; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(143,21,56,.82) 0, rgba(100,16,42,.42) 36%, transparent 67%), #310814; color: white; opacity: 1; transition: opacity .52s ease, visibility .52s ease; }
.logo-intro::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.055) 50%, transparent 72%); transform: translateX(-100%); animation: introLight 1.8s .25s ease-out both; }
.logo-intro.is-leaving { opacity: 0; visibility: hidden; }
.logo-intro-skip { position: absolute; top: clamp(18px,3vw,34px); right: clamp(20px,4vw,52px); z-index: 2; padding: 9px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.5); background: transparent; color: rgba(255,255,255,.8); font: 600 .72rem Arial,sans-serif; letter-spacing: .13em; text-transform: uppercase; cursor: pointer; }
.logo-intro-stage { position: relative; display: grid; justify-items: center; gap: 24px; width: min(560px,82vw); padding: 34px 20px; }
.logo-intro-mark { position: relative; width: clamp(118px,14vw,178px); aspect-ratio: 1; overflow: hidden; clip-path: inset(0 100% 0 0); animation: introReveal .85s .12s cubic-bezier(.22,.85,.26,1) forwards; }
.logo-intro-mark img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 18px 35px rgba(0,0,0,.3)); transform: scale(.84) rotate(-7deg); animation: introMark 1.05s .12s cubic-bezier(.22,.85,.26,1) forwards; }
.logo-intro-scan { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: white; box-shadow: 0 0 20px 6px rgba(246,232,45,.62); animation: introScan .85s .12s cubic-bezier(.22,.85,.26,1) forwards; }
.logo-intro-name { display: grid; justify-items: center; gap: 7px; opacity: 0; transform: translateY(16px); animation: introText .65s .77s ease-out forwards; }
.logo-intro-name strong { font-size: clamp(1.8rem,4vw,3rem); line-height: 1; letter-spacing: -.045em; }
.logo-intro-name span { color: rgba(255,255,255,.68); font-size: clamp(.58rem,1.3vw,.75rem); letter-spacing: .2em; text-align: center; text-transform: uppercase; }
.logo-intro-rule { width: 0; height: 1px; background: linear-gradient(90deg,transparent,var(--yellow),transparent); animation: introRule .75s .55s ease-out forwards; }
.logo-intro-rule-bottom { animation-delay: .72s; }
@keyframes introReveal { to { clip-path: inset(0); } }
@keyframes introMark { to { transform: scale(1) rotate(0); } }
@keyframes introScan { to { left: 100%; opacity: 0; } }
@keyframes introText { to { opacity: 1; transform: translateY(0); } }
@keyframes introRule { to { width: min(440px,72vw); } }
@keyframes introLight { 55%,100% { transform: translateX(100%); } }
.skip-link { position: fixed; z-index: 99999; top: 8px; left: 8px; padding: 10px 14px; background: white; color: var(--wine); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
  padding: 0 4.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.18);
  color: white;
}
.brand, .footer-brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 49px; height: 49px; }
.brand span, .footer-brand span { display: flex; flex-direction: column; }
.brand strong, .footer-brand strong { font-size: 1.24rem; line-height: 1; letter-spacing: -.03em; }
.brand em, .footer-brand em { margin-top: 5px; font-size: .58rem; font-style: normal; text-transform: uppercase; letter-spacing: .16em; opacity: .7; }
.desktop-nav { display: flex; align-items: center; gap: 34px; font-size: .85rem; font-weight: 550; }
.desktop-nav > a:not(.nav-cta) { position: relative; padding: 12px 0; }
.desktop-nav > a:not(.nav-cta)::after { content: ""; position: absolute; bottom: 6px; left: 0; width: 0; height: 1px; background: white; transition: width .25s ease; }
.desktop-nav > a:hover::after { width: 100%; }
.nav-cta { border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 12px 20px; transition: .25s ease; }
.nav-cta:hover { color: var(--wine); background: white; }

/* Nella sola homepage la navigazione riprende il bordeaux del tema. */
body.home .desktop-nav { color: var(--wine); }
body.home .desktop-nav > a:not(.nav-cta)::after { background: var(--wine); }
body.home .nav-cta { border-color: rgba(143,21,56,.55); }
body.home .nav-cta:hover { color: white; background: var(--wine); }
.mobile-nav { display: none; position: relative; }

.hero {
  min-height: 760px;
  background: var(--wine);
  color: white;
  display: grid;
  grid-template-columns: 52% 48%;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; padding: 190px 6.8vw 110px; }
.eyebrow, .kicker { margin: 0 0 29px; text-transform: uppercase; letter-spacing: .18em; font-size: .69rem; font-weight: 650; }
.eyebrow { display: flex; align-items: center; color: rgba(255,255,255,.7); }
.eyebrow span { width: 27px; height: 1px; background: var(--yellow); margin-right: 12px; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(4.2rem, 6.6vw, 7.7rem); font-weight: 500; letter-spacing: -.072em; line-height: .88; }
.hero h1 em { display: block; color: var(--yellow); font-family: Georgia, serif; font-size: .96em; font-weight: 400; letter-spacing: -.055em; }
.hero-lead { max-width: 620px; margin: 40px 0 0; color: rgba(255,255,255,.77); font-size: 1.1rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 40px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-width: 195px; padding: 17px 20px; border-radius: 4px; font-size: .85rem; font-weight: 650; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: white; color: var(--wine); box-shadow: 0 10px 35px rgba(55,0,18,.17); }
.button-primary span, .button-yellow span { font-size: 1.05rem; }
.text-link { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.38); color: rgba(255,255,255,.82); font-size: .8rem; }
.text-link span { margin-left: 14px; color: var(--yellow); }

.hero-hub {
  min-height: 760px;
  padding-top: 96px;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: #cfcebf;
  color: var(--ink);
}
.hub-band { min-height: 0; padding: 14px 22px 16px; border-bottom: 1px solid rgba(25,28,26,.27); display: grid; grid-template-rows: auto 1fr; gap: 10px; overflow: hidden; }
.hub-band:last-child { border-bottom: 0; }
.hub-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.hub-heading > span { flex: 0 0 auto; color: rgba(25,28,26,.57); font: 600 .57rem "Courier New", monospace; letter-spacing: .11em; text-transform: uppercase; }
.hub-heading > strong { max-width: 72%; font-family: Georgia, serif; font-size: .94rem; font-weight: 400; line-height: 1.1; text-align: right; }
.hub-cards { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hub-card { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #202421; color: white; }
.hub-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hub-card > i { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,11,.05), rgba(10,12,11,.8)); }
.hub-card > span { position: absolute; z-index: 2; left: 11px; right: 9px; bottom: 9px; display: grid; gap: 3px; }
.hub-card small { color: var(--yellow); font-size: .48rem; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.hub-card strong { overflow: hidden; font-size: .67rem; line-height: 1.18; text-overflow: ellipsis; white-space: nowrap; }
a.hub-card:hover img { transform: scale(1.045); }
.repository-scroll { min-height: 0; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-color: var(--wine) rgba(25,28,26,.12); scrollbar-width: thin; scroll-snap-type: x proximity; }
.repository-placeholder { flex: 0 0 31%; min-width: 140px; padding: 11px; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(244,241,234,.55); border: 1px solid rgba(25,28,26,.19); scroll-snap-align: start; }
.repository-placeholder > span { margin-bottom: auto; color: var(--wine); font: 600 .55rem "Courier New", monospace; }
.repository-placeholder > strong { font-family: Georgia, serif; font-size: .82rem; font-weight: 400; }
.repository-placeholder > small { margin-top: 3px; color: var(--muted); font-size: .5rem; text-transform: uppercase; letter-spacing: .08em; }

.hero-visual { position: relative; min-height: 760px; overflow: hidden; background: #c9c9b7; }
.map-grid { position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(rgba(25,28,26,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(25,28,26,.09) 1px, transparent 1px); background-size: 68px 68px; }
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; border: 1px solid rgba(25,28,26,.22); background: rgba(244,241,234,.42); }
.hero-visual::before { width: 34%; height: 30%; top: 13%; left: 11%; transform: rotate(-7deg); }
.hero-visual::after { width: 42%; height: 27%; bottom: 18%; right: 7%; transform: rotate(8deg); }
.map-road { position: absolute; background: rgba(244,241,234,.88); box-shadow: 0 0 0 1px rgba(25,28,26,.16), 0 0 0 10px rgba(244,241,234,.32); transform-origin: center; }
.road-a { width: 130%; height: 23px; top: 42%; left: -17%; transform: rotate(-15deg); }
.road-b { width: 24px; height: 120%; left: 58%; top: -9%; transform: rotate(23deg); }
.road-c { width: 82%; height: 17px; right: -23%; top: 67%; transform: rotate(37deg); }
.map-marker { position: absolute; display: flex; align-items: center; gap: 10px; padding: 7px 11px 7px 7px; border-radius: 99px; background: rgba(244,241,234,.9); color: var(--ink); font: 600 .67rem "Courier New", monospace; box-shadow: 0 8px 24px rgba(25,28,26,.12); }
.map-marker i { display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--wine); border: 3px solid var(--yellow); }
.marker-a { top: 30%; left: 40%; }
.marker-b { top: 58%; left: 17%; }
.marker-c { top: 70%; right: 18%; padding-right: 7px; }
.coordinate { position: absolute; top: 132px; right: 6%; font: 500 .67rem/1.65 "Courier New", monospace; letter-spacing: .08em; color: rgba(25,28,26,.58); }
.visual-caption { position: absolute; left: 8%; bottom: 58px; z-index: 2; }
.visual-caption span { display: block; margin-bottom: 12px; text-transform: uppercase; font-size: .62rem; letter-spacing: .17em; color: rgba(25,28,26,.57); }
.visual-caption strong { font-size: 1.5rem; line-height: 1.16; letter-spacing: -.04em; }

.section-shell { width: min(1180px, 86.5vw); margin: 0 auto; }
.section-label { padding-top: 7px; font: 600 .65rem "Courier New", monospace; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.section-label.light, .kicker.light { color: rgba(255,255,255,.55); }
.news { padding-top: 115px; padding-bottom: 125px; }
.news-heading { display: grid; grid-template-columns: .7fr 2.1fr 1.2fr; gap: 5vw; align-items: end; margin-bottom: 55px; }
.news-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 4.2vw, 4.8rem); font-weight: 400; line-height: 1.03; letter-spacing: -.05em; }
.news-heading > p { margin: 0 0 6px; color: var(--muted); font-size: .88rem; line-height: 1.75; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card { position: relative; isolation: isolate; aspect-ratio: 1; padding: 27px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--line); background: #e9e5dc center/cover no-repeat; color: var(--ink); transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.news-card:hover { transform: translateY(-4px); background-color: var(--wine); color: white; }
.news-card.has-image::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(12,14,13,.2), rgba(12,14,13,.88)); }
.news-card.has-image { color: white; }
.news-card-top { display: flex; justify-content: space-between; color: var(--wine); font: 600 .62rem "Courier New", monospace; }
.news-card:hover .news-card-top, .news-card.has-image .news-card-top { color: var(--yellow); }
.news-card-top i { font-size: 1.1rem; font-style: normal; }
.news-card small { color: var(--wine); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.news-card:hover small, .news-card.has-image small { color: var(--yellow); }
.news-card h3 { max-width: 290px; margin: 10px 0 16px; font-family: Georgia, serif; font-size: clamp(1.8rem, 2.5vw, 2.65rem); font-weight: 400; line-height: 1.04; letter-spacing: -.04em; }
.news-card p { max-width: 310px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.news-card:hover p, .news-card.has-image p { color: rgba(255,255,255,.7); }
.news-status { width: fit-content; padding-top: 9px; border-top: 1px solid currentColor; color: var(--muted); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.news-card:hover .news-status, .news-card.has-image .news-status { color: rgba(255,255,255,.76); }
.intro { display: grid; grid-template-columns: .7fr 2.1fr 1.2fr; gap: 5vw; padding-top: 130px; padding-bottom: 145px; }
.kicker { color: var(--wine); }
.intro h2, .services h2, .method h2, .contact h2 { margin: 0; font-family: Georgia, serif; font-weight: 400; letter-spacing: -.045em; }
.intro h2 { max-width: 670px; font-size: clamp(2.5rem, 4vw, 4.4rem); line-height: 1.08; }
.intro-side { padding-top: 48px; }
.intro-side > p { margin: 0 0 34px; color: var(--muted); font-size: .94rem; line-height: 1.8; }
.intro-side ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.intro-side li { display: grid; grid-template-columns: 33px 1fr; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .76rem; line-height: 1.45; }
.intro-side li span { color: var(--wine); font: 600 .58rem "Courier New", monospace; }

.projects { padding: 130px 0 155px; border-top: 1px solid var(--line); background: #e9e5dc; }
.projects-heading { display: grid; grid-template-columns: .7fr 2.1fr 1.2fr; gap: 5vw; align-items: end; margin-bottom: 65px; }
.projects-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 4.2vw, 4.8rem); font-weight: 400; line-height: 1.03; letter-spacing: -.05em; }
.projects-heading > p { margin: 0 0 6px; color: var(--muted); font-size: .88rem; line-height: 1.75; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.project-card { position: relative; min-height: 510px; overflow: hidden; color: white; background: #111; box-shadow: 0 20px 50px rgba(25,28,26,.12); }
.project-card-offset { min-height: 510px; }
.project-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.22) saturate(.92) contrast(1.05); transition: transform .7s cubic-bezier(.2,.65,.25,1), filter .45s ease; }
.project-card-election > img { object-position: top center; filter: brightness(.78) saturate(.9) contrast(1.05); }
.project-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,12,10,.22), rgba(9,12,10,.05) 40%, rgba(9,12,10,.88)); }
.project-card:hover > img { transform: scale(1.035); filter: brightness(1.36) saturate(1) contrast(1.06); }
.project-card-election:hover > img { filter: brightness(.9) saturate(1) contrast(1.06); }
.project-meta { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 25px 28px; border-bottom: 1px solid rgba(255,255,255,.27); font: 600 .61rem "Courier New", monospace; text-transform: uppercase; letter-spacing: .11em; color: rgba(255,255,255,.78); }
.project-title { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 38px 32px; }
.project-title p { margin: 0 0 9px; color: var(--yellow); text-transform: uppercase; font-size: .64rem; font-weight: 650; letter-spacing: .14em; }
.project-title h3 { max-width: 520px; margin: 0; font-family: Georgia, serif; font-size: clamp(1.85rem, 2.6vw, 3.1rem); line-height: 1.04; font-weight: 400; letter-spacing: -.035em; }
.project-link { display: inline-block; margin-top: 25px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.5); font-size: .73rem; font-weight: 600; }

.toponymy-showcase { margin-top: 125px; padding-top: 85px; border-top: 1px solid var(--line); }
.toponymy-heading { display: grid; grid-template-columns: 2.8fr 1.2fr; gap: 8vw; align-items: end; margin-bottom: 48px; }
.toponymy-heading h3 { max-width: 760px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.25rem, 3.5vw, 4rem); font-weight: 400; line-height: 1.06; letter-spacing: -.045em; }
.toponymy-heading > p { margin: 0 0 5px; color: var(--muted); font-size: .86rem; line-height: 1.75; }
.toponymy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.activity-card { overflow: hidden; border: 1px solid rgba(25,28,26,.13); background: var(--paper); }
.activity-image { position: relative; overflow: hidden; aspect-ratio: 2 / 1; background: #242824; }
.activity-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.65,.25,1); }
.activity-card:hover .activity-image img { transform: scale(1.04); }
.activity-image span { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--wine-deep); font: 700 .61rem "Courier New", monospace; box-shadow: 0 6px 20px rgba(25,28,26,.18); }
.activity-copy { padding: 28px 27px 31px; }
.activity-copy h4 { min-height: 54px; margin: 0 0 17px; font-size: 1.16rem; line-height: 1.22; letter-spacing: -.025em; }
.activity-copy p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.72; }

.services { background: #202421; color: white; padding: 126px 0 130px; }
.services-heading { display: grid; grid-template-columns: .7fr 2.1fr 1.2fr; gap: 5vw; align-items: start; margin-bottom: 65px; }
.services h2 { font-size: clamp(2.6rem, 4.1vw, 4.8rem); line-height: 1.05; }
.services-intro { align-self: end; margin: 0 0 8px; color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.75; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.15); border-left: 1px solid rgba(255,255,255,.15); }
.service-card { min-height: 405px; padding: 27px 30px 30px; border-right: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); display: flex; flex-direction: column; transition: background .25s ease, color .25s ease; }
.service-card:hover { background: var(--yellow); color: var(--ink); }
.service-top { display: flex; justify-content: space-between; color: rgba(255,255,255,.48); font: 600 .62rem "Courier New", monospace; }
.service-top i { font-style: normal; font-size: 1.1rem; }
.service-card:hover .service-top { color: var(--wine); }
.service-card h3 { max-width: 280px; margin: 57px 0 20px; font-size: 1.46rem; line-height: 1.15; letter-spacing: -.035em; }
.service-card > p { margin: 0; color: rgba(255,255,255,.56); font-size: .82rem; line-height: 1.75; }
.service-card:hover > p { color: rgba(25,28,26,.7); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 25px; }
.tags span { border: 1px solid rgba(255,255,255,.18); border-radius: 99px; padding: 7px 9px; color: rgba(255,255,255,.63); font: 500 .57rem "Courier New", monospace; }
.service-card:hover .tags span { border-color: rgba(25,28,26,.25); color: rgba(25,28,26,.72); }
.service-card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; min-height: 330px; }
.service-card:last-child:nth-child(3n + 1) h3 { max-width: 520px; margin-top: 42px; }
.service-card:last-child:nth-child(3n + 1) > p { max-width: 720px; }

.method { display: grid; grid-template-columns: .7fr 1.25fr 2.05fr; gap: 5vw; padding-top: 135px; padding-bottom: 145px; }
.method h2 { font-size: clamp(2.6rem, 4.1vw, 4.7rem); line-height: 1.02; }
.method-heading > p:last-child { max-width: 400px; margin: 30px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.75; }
.process-list { border-top: 1px solid var(--line); }
.process-list article { display: grid; grid-template-columns: 45px 1.2fr 1.5fr; gap: 20px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.process-list article > span { color: var(--wine); font: 600 .62rem "Courier New", monospace; }
.process-list h3 { margin: 0; font-size: .93rem; letter-spacing: -.02em; }
.process-list p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.65; }

.contact { position: relative; overflow: hidden; background: var(--wine); color: white; padding: 125px 0 130px; }
.contact-inner { position: relative; z-index: 2; display: grid; grid-template-columns: .7fr 2.1fr 1.2fr; gap: 5vw; }
.contact h2 { max-width: 720px; font-size: clamp(3rem, 5.1vw, 5.8rem); line-height: .99; }
.button-yellow { margin-top: 40px; background: var(--yellow); color: var(--wine-deep); }
.contact-info { align-self: end; padding-bottom: 8px; }
.contact-info > span { display: block; margin-bottom: 12px; color: rgba(255,255,255,.5); font: 600 .6rem "Courier New", monospace; text-transform: uppercase; letter-spacing: .13em; }
.contact-info a { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.5); font-size: 1.05rem; }
.contact-info p { max-width: 330px; margin: 25px 0 0; color: rgba(255,255,255,.62); font-size: .78rem; line-height: 1.7; }
.contact-orbit { position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.orbit-one { width: 650px; height: 650px; right: -160px; top: -280px; }
.orbit-two { width: 390px; height: 390px; right: -50px; top: -150px; }

footer {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 92px;
  padding: 11px 4.5vw;
  display: grid;
  grid-template-columns: minmax(250px, .9fr) minmax(440px, 1.8fr) minmax(145px, .55fr);
  align-items: center;
  gap: 3vw;
  border-top: 1px solid rgba(255,255,255,.10);
  background: #171a18;
  color: white;
  box-shadow: 0 -10px 35px rgba(0,0,0,.16);
}
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { font-size: 1rem; }
.footer-brand em { font-size: .5rem; }
.footer-details { display: grid; gap: 2px; margin: 0; color: rgba(255,255,255,.62); font-size: .64rem; font-style: normal; line-height: 1.25; }
.footer-details strong { color: rgba(255,255,255,.92); font-size: .7rem; font-weight: 650; }
.footer-details a { width: fit-content; color: rgba(255,255,255,.72); }
.footer-details a:hover { color: var(--yellow); }
.footer-meta { justify-self: end; display: grid; justify-items: end; gap: 16px; }
.footer-meta p, .footer-meta a { margin: 0; color: rgba(255,255,255,.52); font-size: .67rem; }
.footer-meta a:hover { color: white; }

body:not(.home) .site-header { position: relative; background: var(--wine); }
.content-shell { width: min(900px, 86.5vw); min-height: 60vh; margin: 0 auto; padding: 90px 0 120px; }
.content-card { color: var(--ink); font-size: 1rem; line-height: 1.75; }
.content-card h1 { margin: 0 0 35px; font-family: Georgia, serif; font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 400; line-height: 1.03; letter-spacing: -.05em; }
.content-card img { max-width: 100%; height: auto; }
.content-card a:not(.button) { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 58% 42%; }
  .hero-copy { padding-left: 5vw; padding-right: 4vw; }
  .hero h1 { font-size: clamp(4rem, 7vw, 5.6rem); }
  .intro, .services-heading, .contact-inner { grid-template-columns: .55fr 2fr 1.25fr; gap: 3.5vw; }
  .projects-heading { grid-template-columns: .55fr 2fr 1.25fr; gap: 3.5vw; }
  .news-heading { grid-template-columns: .55fr 2fr 1.25fr; gap: 3.5vw; }
  .method { grid-template-columns: .55fr 1.15fr 2.2fr; gap: 3.5vw; }
}

@media (max-width: 760px) {
  body { padding-bottom: 148px; }
  .site-header { height: 80px; padding: 0 6vw; }
  .brand img { width: 43px; height: 43px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; gap: 6px; align-items: center; cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { width: 16px; height: 1px; background: white; }
  .mobile-nav nav { position: absolute; top: 50px; right: 0; min-width: 210px; padding: 16px; border-radius: 5px; background: white; color: var(--ink); box-shadow: 0 15px 40px rgba(30,0,10,.25); display: grid; }
  .mobile-nav nav a { padding: 12px; border-bottom: 1px solid var(--line); font-size: .84rem; }

  .hero { display: block; min-height: auto; }
  .hero-copy { padding: 150px 7vw 75px; }
  .hero h1 { font-size: clamp(3.65rem, 17vw, 5.2rem); }
  .hero-lead { margin-top: 30px; font-size: .98rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-visual { min-height: 500px; }
  .coordinate { top: 35px; }
  .hero-hub { min-height: 900px; padding-top: 0; grid-template-rows: repeat(3, 300px); }
  .hub-band { padding: 16px 6vw 18px; gap: 12px; }
  .hub-heading { display: grid; gap: 4px; }
  .hub-heading > strong { max-width: none; font-size: .94rem; text-align: left; }
  .hub-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .hub-card { flex: 0 0 72%; scroll-snap-align: start; }
  .hub-card strong { font-size: .76rem; }
  .repository-placeholder { flex-basis: 58%; }

  .section-shell { width: 86vw; }
  .news { padding-top: 90px; padding-bottom: 95px; }
  .news-heading { display: block; margin-bottom: 38px; }
  .news-heading h2 { font-size: 3rem; }
  .news-heading > p { margin-top: 25px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { padding: 25px; }
  .intro, .services-heading, .method, .contact-inner { display: block; }
  .projects-heading { display: block; }
  .section-label { margin-bottom: 65px; }
  .intro { padding-top: 95px; padding-bottom: 100px; }
  .intro h2 { font-size: 2.85rem; }
  .intro-side { padding-top: 55px; }
  .projects { padding: 95px 0 105px; }
  .projects-heading { margin-bottom: 45px; }
  .projects-heading h2 { font-size: 3rem; }
  .projects-heading > p { margin-top: 28px; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-card, .project-card-offset { min-height: 470px; margin-top: 0; }
  .project-title { padding: 29px 25px; }
  .project-meta { padding: 21px 22px; }
  .toponymy-showcase { margin-top: 85px; padding-top: 70px; }
  .toponymy-heading { display: block; margin-bottom: 38px; }
  .toponymy-heading h3 { font-size: 2.75rem; }
  .toponymy-heading > p { margin-top: 26px; }
  .toponymy-grid { grid-template-columns: 1fr; gap: 15px; }
  .activity-copy h4 { min-height: auto; }
  .services { padding: 95px 0 100px; }
  .services-heading { margin-bottom: 50px; }
  .services h2 { font-size: 2.85rem; }
  .services-intro { margin-top: 35px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 350px; }
  .service-card:last-child:nth-child(3n + 1) { grid-column: auto; min-height: 350px; }
  .service-card h3 { margin-top: 45px; }
  .method { padding-top: 95px; padding-bottom: 100px; }
  .method h2 { font-size: 3rem; }
  .process-list { margin-top: 60px; }
  .process-list article { grid-template-columns: 40px 1fr; }
  .process-list p { grid-column: 2; }
  .contact { padding: 95px 0 100px; }
  .contact h2 { font-size: 3.25rem; }
  .contact-info { margin-top: 65px; }
  footer { min-height: 148px; padding: 10px 6vw; display: flex; align-items: flex-start; gap: 6px; flex-direction: column; }
  .footer-brand { gap: 9px; }
  .footer-brand img { width: 32px; height: 32px; }
  .footer-brand strong { font-size: .86rem; }
  .footer-details { gap: 1px; font-size: .58rem; line-height: 1.2; }
  .footer-details strong { font-size: .64rem; }
  .footer-meta { width: 100%; display: flex; justify-content: space-between; justify-items: initial; gap: 16px; }
  .footer-meta p, .footer-meta a { font-size: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Home compatta e pagine interne */
body { padding-bottom: 68px; }
.home-page { height: calc(100svh - 68px); min-height: 650px; overflow: hidden; }
.site-header { height: 82px; }
body:not(.home) .site-header { position: relative; background: var(--wine); }
.home-page .hero { height: 100%; min-height: 650px; grid-template-columns: 52% 48%; }
.home-page .hero-copy { min-height: 0; padding: 112px 3.4vw 18px 4.5vw; display: grid; grid-template-rows: auto minmax(210px, 1fr); gap: clamp(18px, 2.2vh, 28px); }
.home-page .eyebrow { margin-bottom: 15px; }
.home-page .hero h1 { max-width: 680px; font-size: clamp(3.35rem, 5.1vw, 6.1rem); line-height: .89; }
.home-page .hero-lead { max-width: 590px; margin-top: 18px; font-size: clamp(.78rem, .9vw, .98rem); line-height: 1.52; }
.home-page .hero-hub { height: 100%; min-height: 0; padding-top: 82px; }
.home-news { min-height: 0; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.home-news-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.3); }
.home-news-heading span { color: var(--yellow); font: 650 .62rem "Courier New", monospace; letter-spacing: .11em; text-transform: uppercase; }
.home-news-heading strong { color: rgba(255,255,255,.7); font-family: Georgia, serif; font-size: .88rem; font-weight: 400; }
.home-news-grid { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.home-news-card { min-width: 0; padding: clamp(10px, 1vw, 16px); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.24); background: rgba(92,8,36,.34); color: white; transition: background .2s ease, transform .2s ease; }
.home-news-card:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.home-news-card > span { color: var(--yellow); font: 650 .58rem "Courier New", monospace; }
.home-news-card h2 { margin: 8px 0; font-family: Georgia, serif; font-size: clamp(.9rem, 1.15vw, 1.3rem); font-weight: 400; line-height: 1.04; letter-spacing: -.025em; }
.home-news-card small { color: rgba(255,255,255,.58); font-size: .54rem; letter-spacing: .08em; text-transform: uppercase; }
.home-news-card { position: relative; padding: 0; overflow: hidden; isolation: isolate; background: #35101f; }
.home-news-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease; }
.home-news-card:nth-child(2) > img { object-position: center 18%; }
.home-news-card:nth-child(3) > img { object-position: center top; }
.home-news-card > i { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(39,3,16,.28), rgba(39,3,16,.2) 34%, rgba(39,3,16,.94) 82%); }
.home-news-card:hover { background: #35101f; }
.home-news-card:hover > img { transform: scale(1.045); }
.home-news-card-link { position: absolute; z-index: 4; inset: 0; }
.home-news-card-top { position: absolute; z-index: 2; inset: 0 0 auto; padding: 9px 10px 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.28); }
.home-news-card-top span { flex: 0 0 auto; color: var(--yellow); font: 700 .56rem "Courier New", monospace; }
.home-news-card-top small { max-width: 78%; color: white; font-size: clamp(.47rem, .51vw, .56rem); font-weight: 700; line-height: 1.18; letter-spacing: .055em; text-align: right; text-transform: uppercase; }
.home-news-card-copy { position: absolute; z-index: 2; inset: auto 11px 10px; }
.home-news-card-copy h2 { margin: 0; color: white; font-family: Georgia, "Times New Roman", serif; font-size: clamp(.9rem, 1.12vw, 1.24rem); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; }
.home-news-card-copy small { display: block; width: fit-content; margin-top: 7px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.58); color: rgba(255,255,255,.78); font-size: clamp(.45rem, .49vw, .54rem); line-height: 1.15; letter-spacing: .045em; text-transform: uppercase; }
.home-page .hub-band { padding: 10px 18px 12px; gap: 7px; }
.home-page .hub-heading > span { color: var(--wine); }
.home-page .hub-heading > strong { font-size: clamp(.72rem, .82vw, .92rem); }
.hub-description-card { position: relative; min-width: 0; min-height: 0; padding: clamp(10px, 1vw, 16px) clamp(8px, .9vw, 15px) clamp(10px, 1vw, 16px) clamp(34px, 2.8vw, 44px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; border: 0; background: transparent; }
.hub-description-card::before { content: ""; position: absolute; left: 16px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--wine), rgba(143,21,56,.18)); }
.hub-description-card::after { content: ""; position: absolute; left: 10px; top: 28px; width: 10px; height: 10px; border: 2px solid var(--wine); border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(143,21,56,.1); }
.hub-description-card small { color: var(--wine); font-family: Arial, Helvetica, sans-serif; font-size: clamp(.66rem, .72vw, .76rem); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hub-description-card strong { max-width: 195px; margin-top: clamp(15px, 2.2vh, 22px); font-family: Arial, Helvetica, sans-serif; font-size: clamp(1rem, 1.08vw, 1.18rem); font-weight: 720; line-height: 1.06; letter-spacing: -.035em; }
.hub-description-card strong::after { content: ""; display: block; width: 34px; height: 2px; margin-top: 10px; background: var(--wine); }
.hub-description-card p { max-width: 205px; margin: 10px 0 0; color: #4d524d; font-family: Arial, Helvetica, sans-serif; font-size: clamp(.76rem, .8vw, .86rem); line-height: 1.42; }
/* Le schede descrittive diventano note editoriali aperte, senza riquadro. */
.hub-description-card { padding: clamp(12px, 1.15vw, 19px) clamp(8px, 1vw, 16px) clamp(12px, 1.15vw, 19px) clamp(31px, 2.7vw, 43px); overflow: visible; }
.hub-description-card::before { left: 13px; top: 10%; bottom: 10%; width: 3px; background: var(--wine); }
.hub-description-card::after { left: 8px; top: 10%; width: 13px; height: 13px; border: 0; background: var(--yellow); box-shadow: inset 0 0 0 3px var(--wine); }
.hub-description-card small { font-family: Georgia, "Times New Roman", serif; font-size: clamp(.82rem, .9vw, 1rem); font-weight: 700; letter-spacing: .055em; }
.hub-description-card strong { max-width: 225px; margin-top: clamp(10px, 1.45vh, 15px); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 1.22vw, 1.36rem); font-weight: 400; line-height: 1.04; letter-spacing: -.035em; }
.hub-description-card strong::after { width: 45px; margin-top: 9px; }
.hub-description-card p { max-width: 225px; margin-top: 9px; color: #363b37; font-size: clamp(.84rem, .88vw, .95rem); line-height: 1.42; }

/* Copertine dei progetti, ispirate alla grafica editoriale fornita. */
.hub-project-card > i { background: linear-gradient(180deg, rgba(5,8,7,.72) 0%, rgba(5,8,7,.14) 42%, rgba(5,8,7,.88) 100%); }
.hub-project-card > .hub-project-meta { position: absolute; z-index: 3; inset: 0 0 auto; bottom: auto; padding: 9px 10px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.25); }
.hub-project-meta small { min-width: 0; color: white; font: 650 clamp(.48rem, .5vw, .56rem) "Courier New", monospace; letter-spacing: .07em; white-space: nowrap; }
.hub-project-meta b { color: white; font: 650 clamp(.48rem, .5vw, .56rem) "Courier New", monospace; }
.hub-project-card > .hub-project-copy { position: absolute; z-index: 3; inset: auto 11px 10px; display: block; }
.hub-project-copy small { display: block; margin-bottom: 7px; color: var(--yellow); font-size: clamp(.52rem, .56vw, .62rem); font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.hub-project-copy strong { display: block; overflow: visible; color: white; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 1.36vw, 1.56rem); font-weight: 400; line-height: .94; letter-spacing: -.045em; white-space: normal; }
.hub-project-copy em { display: inline-block; margin-top: clamp(9px, 1.25vh, 14px); padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.65); color: white; font-size: clamp(.55rem, .58vw, .64rem); font-style: normal; font-weight: 700; }
.hub-services-feature { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(170px, .9fr); overflow: hidden; background: #202421; color: white; }
.hub-services-band { grid-row: span 2; grid-template-rows: minmax(0, 1fr); padding: 18px; }
.hub-services-band .hub-services-copy { padding: clamp(22px, 2.2vw, 38px); }
.hub-services-band .hub-services-copy strong { max-width: 340px; font-size: clamp(1.5rem, 1.8vw, 2rem); }
.hub-services-band .hub-services-copy p { max-width: 350px; font-size: clamp(.82rem, .9vw, 1rem); line-height: 1.55; }
.hub-services-image { min-width: 0; min-height: 0; overflow: hidden; }
.hub-services-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; filter: saturate(.88) contrast(1.02); }
.hub-services-copy { min-width: 0; padding: clamp(12px, 1.25vw, 20px); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, #282d29, #171a18); }
.hub-services-copy small { color: var(--yellow); font-size: clamp(.55rem, .6vw, .68rem); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.hub-services-copy strong { max-width: 250px; margin-top: 9px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 1.28vw, 1.42rem); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.hub-services-copy p { max-width: 270px; margin: 9px 0 0; color: rgba(255,255,255,.72); font-size: clamp(.67rem, .73vw, .8rem); line-height: 1.43; }

.sit-service-content { display: grid; gap: 64px; }
.sit-service-lead { display: grid; grid-template-columns: 1.15fr .85fr; gap: 7vw; align-items: start; }
.sit-service-lead p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.sit-service-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sit-service-point { min-height: 230px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sit-service-point small { color: var(--wine); font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.sit-service-point h2 { margin-top: 40px; font-family: Arial, Helvetica, sans-serif; font-size: 1.35rem; font-weight: 680; letter-spacing: -.025em; }
.sit-service-point p { margin: 14px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.sit-service-page .inner-hero h1 { font-size: clamp(3rem,5.4vw,6.2rem); }
.sit-service-page .inner-content { width: min(1420px,90vw); }
.sit-service-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.sit-service-feature { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--wine); background: #ebe8df; }
.sit-service-feature-image { aspect-ratio: 16/10; overflow: hidden; background: #202421; }
.sit-service-feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.sit-service-feature:hover .sit-service-feature-image img { transform: scale(1.025); }
.sit-service-feature-copy { padding: 26px 27px 30px; }
.sit-service-feature-copy small { color: var(--wine); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.inner-content .sit-service-feature-copy h2 { margin: 17px 0 0; font-size: clamp(1.45rem,1.85vw,2rem); line-height: 1.08; }
.sit-service-feature-copy p { margin: 18px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.page-return-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.page-return-actions .back-home { margin-left: 0; }
.back-previous { cursor: pointer; font: inherit; }
.service-detail-intro { display: grid; grid-template-columns: .65fr 2fr; gap: 7vw; }
.service-detail-intro > div > p { max-width: 760px; margin: 30px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.service-detail-note { color: var(--wine); font-weight: 700; }
.service-update-badge { display: inline-flex; padding: 10px 14px; border-radius: 99px; background: var(--yellow); color: var(--wine-deep); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.inner-content.toponymy-service-content { width: min(94vw,1700px); padding-top: 62px; }
.toponymy-service-page .inner-hero h1 { font-size: clamp(3rem,5.5vw,6rem); }
.toponymy-service-intro { display: grid; grid-template-columns: .7fr 2fr; gap: 6vw; margin-bottom: 60px; }
.toponymy-service-intro > div > p { max-width: 800px; margin: 28px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.toponymy-feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.toponymy-feature-card { min-width: 0; display: grid; grid-template-rows: minmax(190px,13vw) 1fr; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--wine); background: #ebe8df; }
.toponymy-feature-image { position: relative; display: grid; place-items: center; overflow: hidden; background: #252a26; }
.toponymy-feature-image img { width: 100%; height: 100%; object-fit: contain; }
.toponymy-feature-image span { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--wine-deep); font-size: .72rem; font-weight: 800; }
.toponymy-feature-copy { padding: 21px 22px 25px; }
.inner-content .toponymy-feature-copy h2 { overflow-wrap: anywhere; font-size: clamp(1.08rem,1.2vw,1.35rem); line-height: 1.14; }
.toponymy-feature-copy p { margin: 14px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.62; }
.projects-page-content { padding-top: 62px; }
.projects-page-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.project-detail-card { min-height: 570px; display: grid; grid-template-rows: 205px 1fr; overflow: hidden; border: 1px solid var(--line); background: #ebe8df; }
.project-detail-image { position: relative; overflow: hidden; background: #202421; }
.project-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.project-detail-image > span { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--wine-deep); font-weight: 800; }
.project-detail-copy { padding: 25px 26px 27px; display: flex; flex-direction: column; }
.project-detail-copy > small { color: var(--wine); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.project-entity { margin: 20px 0 5px; color: var(--muted); font-size: .82rem; font-weight: 650; text-transform: uppercase; }
.inner-content .project-detail-copy h2 { overflow-wrap: anywhere; font-size: clamp(1.35rem,1.65vw,1.8rem); line-height: 1.03; }
.project-detail-copy h2 + p { margin: 18px 0 25px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.project-detail-copy a { width: fit-content; margin-top: auto; padding-bottom: 5px; border-bottom: 1px solid var(--wine); color: var(--wine); font-size: .85rem; font-weight: 750; }

.repository-carousel { position: relative; min-height: 0; overflow: hidden; }
.repository-carousel .repository-scroll { height: 100%; padding: 0 55px; overflow-x: auto; scrollbar-width: none; }
.repository-carousel .repository-scroll::-webkit-scrollbar { display: none; }
.repository-carousel .repository-placeholder { flex-basis: 30%; }
.repository-project-card { position: relative; flex: 0 0 30%; min-width: 150px; overflow: hidden; background: #161917; color: white; scroll-snap-align: start; }
.repository-project-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02) contrast(1.01); transition: transform .45s ease, filter .25s ease; }
.repository-project-card > i { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,7,.18), transparent 42%, rgba(5,8,7,.88) 100%); }
.repository-project-card:hover > img { transform: scale(1.045); }
.repository-project-meta { position: absolute; z-index: 2; inset: 0 0 auto; padding: 8px 9px 7px; display: flex; justify-content: space-between; gap: 7px; border-bottom: 1px solid rgba(255,255,255,.25); background: rgba(15,18,16,.42); }
.repository-project-meta small, .repository-project-meta b { color: white; font: 650 clamp(.43rem, .46vw, .51rem) "Courier New", monospace; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.repository-project-copy { position: absolute; z-index: 2; inset: auto 10px 9px; display: block; }
.repository-project-copy small { display: block; color: var(--yellow); font-size: clamp(.46rem, .49vw, .55rem); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.repository-project-copy strong { display: block; margin-top: 5px; color: white; font-family: Georgia, "Times New Roman", serif; font-size: clamp(.82rem, .98vw, 1.08rem); font-weight: 400; line-height: .98; letter-spacing: -.035em; }
.repository-project-copy em { display: inline-block; margin-top: clamp(7px, 1vh, 10px); padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.62); color: white; font-size: clamp(.46rem, .49vw, .54rem); font-style: normal; font-weight: 700; }

.repository-arrow { position: absolute; z-index: 5; top: 50%; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(143,21,56,.96); color: white; cursor: pointer; box-shadow: 0 7px 20px rgba(25,28,26,.3); transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.repository-arrow svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.repository-arrow:hover { background: var(--yellow); color: var(--wine-deep); transform: translateY(-50%) scale(1.08); box-shadow: 0 9px 24px rgba(25,28,26,.35); }
.repository-arrow:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.repository-arrow-left { left: 2px; }
.repository-arrow-right { right: 2px; }
footer { min-height: 68px; height: 68px; padding: 6px 4.5vw; grid-template-columns: minmax(210px, .75fr) minmax(520px, 2fr) minmax(125px, .45fr); gap: 2.2vw; }
.footer-brand { gap: 9px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand strong { font-size: .88rem; }
.footer-brand em { margin-top: 3px; font-size: .43rem; }
.footer-details { gap: 1px; font-size: .63rem; line-height: 1.18; }
.footer-details strong { font-size: .7rem; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 5px 15px; }
.footer-meta { gap: 7px; }
.footer-meta p, .footer-meta a { font-size: .58rem; }
.back-to-top { position: fixed; z-index: 90; right: 25px; bottom: 88px; display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: var(--wine); color: white; font: 700 .72rem Arial,sans-serif; box-shadow: 0 10px 28px rgba(25,28,26,.28); opacity: 0; visibility: hidden; transform: translateY(12px); cursor: pointer; transition: opacity .22s ease, visibility .22s ease, transform .22s ease, background .22s ease; }
.back-to-top span { color: var(--yellow); font-size: 1rem; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--wine-deep); }
.inner-page { min-height: calc(100svh - 68px); padding-bottom: 35px; background: var(--paper); }
.inner-page-dark { background: #202421; color: white; }
.inner-hero { padding: 62px 6.75vw 66px; background: var(--wine); color: white; }
.inner-hero > div { width: min(1180px, 100%); margin: 0 auto; }
.inner-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.back-home { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 .55rem; padding: 12px 18px; border: 1px solid var(--yellow); border-radius: 999px; background: var(--yellow); color: var(--wine-deep); font-size: .82rem; font-weight: 700; box-shadow: 0 8px 25px rgba(67,0,22,.2); transition: background .2s ease, color .2s ease, transform .2s ease; }
.back-home span { font-size: 1.08rem; }
.back-home:hover { background: var(--yellow); border-color: var(--yellow); color: var(--wine-deep); transform: translateX(-3px); }
.inner-hero h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(3.8rem, 7vw, 7.7rem); font-weight: 400; line-height: .9; letter-spacing: -.06em; }
.inner-hero p { max-width: 760px; margin: 25px 0 0; color: rgba(255,255,255,.7); font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.5; }
.inner-content { width: min(1180px, 86.5vw); margin: 0 auto; padding: 80px 0 100px; }
.inner-content h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 4.3rem); font-weight: 400; line-height: 1.06; letter-spacing: -.045em; }
.about-content, .method-page-content, .contact-page-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 9vw; }
.about-content > div:last-child > p { margin: 42px 0 32px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.about-content ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.about-content li { padding: 17px 0; border-bottom: 1px solid var(--line); }
.services-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 60px; }
.services-page-grid .service-card { min-height: 360px; border: 1px solid rgba(255,255,255,.15); }
.services-page-grid .service-card:last-child { grid-column: auto; min-height: 360px; }
.services-page-grid .service-card h2 { max-width: 300px; margin: 46px 0 18px; font-family: Arial, sans-serif; font-size: 1.45rem; font-weight: 650; line-height: 1.15; }
.method-page-content .process-list { margin-top: 8px; }
.contact-page { background: var(--wine); color: white; }
.contact-page .inner-hero { border-bottom: 1px solid rgba(255,255,255,.17); }
.contact-page .kicker { color: rgba(255,255,255,.55); }
.contact-page-content address { display: grid; align-content: end; gap: 12px; font-style: normal; color: rgba(255,255,255,.72); }
.contact-page-content address strong { color: white; font-size: 1.12rem; }
.contact-page-content address a { width: fit-content; margin-top: 8px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.5); color: white; }

/* Le tre pagine istituzionali restano contenute nel viewport desktop. */
@media (min-width: 761px) {
  html:has(body.overdatasit-compact-page),
  body.overdatasit-compact-page { height: 100%; overflow: hidden !important; }
  body.overdatasit-compact-page .inner-page { height: calc(100vh - 68px); min-height: 0; overflow: hidden; }
  body.overdatasit-compact-page .inner-hero { padding-top: 42px; padding-bottom: 42px; }
  body.overdatasit-compact-page .inner-content { padding-top: clamp(30px,4.5vh,58px); padding-bottom: 20px; }
  html:has(body.page-template-page-chi-siamo),
  html:has(body.page-template-page-metodo),
  html:has(body.page-template-page-contatti),
  body.page-template-page-chi-siamo,
  body.page-template-page-metodo,
  body.page-template-page-contatti { height: 100%; overflow-y: hidden; }
  body.page-template-page-chi-siamo .inner-page,
  body.page-template-page-metodo .inner-page,
  body.page-template-page-contatti .inner-page { height: calc(100vh - 68px); min-height: 0; overflow: hidden; }
  body.page-template-page-chi-siamo .inner-hero,
  body.page-template-page-metodo .inner-hero,
  body.page-template-page-contatti .inner-hero { padding-top: 42px; padding-bottom: 42px; }
  body.page-template-page-chi-siamo .inner-content,
  body.page-template-page-metodo .inner-content,
  body.page-template-page-contatti .inner-content { padding-top: clamp(36px,5vh,64px); padding-bottom: 28px; }
}

/* Urbanistica, PUC/CDU e segnaletica. */
.urbanistica-service-page .inner-hero h1 { font-size: clamp(3rem,5.5vw,6.4rem); }
.urbanistica-service-content { width: min(1520px,92vw); display: grid; gap: 44px; padding-top: 70px; }
.urbanistica-intro { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: 7vw; align-items: end; }
.urbanistica-intro .kicker { color: var(--wine); }
.urbanistica-intro > p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.78; }
.urbanistica-hero-media { position: relative; margin: 0; overflow: hidden; background: #202421; }
.urbanistica-hero-media img { display: block; width: 100%; height: clamp(330px,40vw,610px); object-fit: cover; }
.urbanistica-hero-media figcaption { position: absolute; left: 0; bottom: 0; max-width: 660px; padding: 15px 22px; background: rgba(25,28,26,.9); color: white; font-size: .78rem; line-height: 1.45; }
.urbanistica-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.urbanistica-feature-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--wine); background: #ebe8df; }
.urbanistica-feature-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(340px,.75fr); }
.urbanistica-feature-image { min-height: 330px; overflow: hidden; background: #242824; }
.urbanistica-feature-image img { display: block; width: 100%; height: 100%; min-height: 330px; object-fit: contain; }
.urbanistica-feature-grid-puc .urbanistica-feature-card:nth-child(2) .urbanistica-feature-image { padding: 0; }
.urbanistica-feature-grid-puc .urbanistica-feature-card:nth-child(2) .urbanistica-feature-image img { width: 100%; max-width: none; height: 100%; max-height: none; min-height: 330px; object-fit: cover; object-position: center; }
.urbanistica-feature-copy { padding: 28px 30px 32px; }
.urbanistica-feature-copy small, .signage-detail-copy small { color: var(--wine); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.urbanistica-feature-copy h3, .signage-detail-copy h3 { margin: 15px 0 0; font-family: Georgia,serif; font-size: clamp(1.55rem,2vw,2.2rem); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
.urbanistica-feature-copy p, .signage-detail-copy p { margin: 18px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.7; }
.urbanistica-macro { display: grid; gap: 44px; margin-top: 76px; padding-top: 76px; border-top: 1px solid var(--line); }
.signage-detail { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(360px,.75fr); border-top: 3px solid var(--wine); background: #ebe8df; }
.signage-detail-image { min-height: 500px; overflow: hidden; background: #242824; }
.signage-detail-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.signage-detail-copy { padding: clamp(30px,4vw,56px); align-self: center; }
.signage-detail-copy ul { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.signage-detail-copy li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .84rem; font-weight: 700; }
.service-showcase-page .inner-hero h1 { font-size: clamp(3rem,5.35vw,6.15rem); }
.service-showcase-content { width: min(1480px,92vw); display: grid; gap: 54px; padding-top: 70px; }
.service-showcase-intro { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: 7vw; align-items: end; }
.service-showcase-intro .kicker { color: var(--wine); }
.service-showcase-intro > p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.78; }
.service-showcase-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.service-showcase-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--wine); background: #ebe8df; }
.service-showcase-image { height: clamp(250px,23vw,355px); overflow: hidden; background: #242824; }
.service-showcase-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-showcase-copy { padding: 27px 28px 32px; }
.service-showcase-copy small, .service-example small { color: var(--wine); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.inner-content .service-showcase-copy h2 { margin: 16px 0 0; font-size: clamp(1.55rem,1.8vw,2rem); line-height: 1.07; }
.service-showcase-copy p { margin: 18px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.service-example { padding: clamp(30px,4vw,55px); display: flex; align-items: flex-end; justify-content: space-between; gap: 45px; background: var(--wine); color: white; }
.service-example > div { max-width: 850px; }
.service-example small { color: var(--yellow); }
.inner-content .service-example h2 { margin-top: 15px; font-size: clamp(2rem,3vw,3.4rem); }
.service-example p { margin: 18px 0 0; color: rgba(255,255,255,.75); line-height: 1.7; }
.button-yellow { min-width: 210px; background: var(--yellow); color: var(--wine-deep); }
.census-documents { margin-top: 30px; padding-top: 68px; border-top: 1px solid var(--line); }
.census-documents-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; align-items: end; margin-bottom: 38px; }
.census-documents-heading .kicker { color: var(--wine); }
.census-documents-heading p { margin: 0; color: var(--muted); line-height: 1.75; }
.census-document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.census-document-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: #ebe8df; transition: transform .22s ease, box-shadow .22s ease; }
.census-document-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(25,28,26,.12); }
.census-document-cover { height: 390px; padding: 24px; display: grid; place-items: center; overflow: hidden; background: #d7d3c7; }
.census-document-cover img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 17px rgba(25,28,26,.18)); }
.census-document-copy { flex: 1; padding: 26px 27px 30px; display: flex; flex-direction: column; }
.census-document-copy small { color: var(--wine); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.inner-content .census-document-copy h2 { margin: 15px 0 0; font-size: clamp(1.45rem,1.75vw,1.9rem); line-height: 1.08; }
.census-document-copy p { margin: 17px 0 25px; color: var(--muted); font-size: .91rem; line-height: 1.68; }
.census-document-copy em { width: fit-content; margin-top: auto; padding-bottom: 5px; border-bottom: 1px solid var(--wine); color: var(--wine); font-size: .82rem; font-style: normal; font-weight: 800; }

@media (max-height: 760px) and (min-width: 761px) {
  .home-page .hero-copy { padding-top: 96px; gap: 12px; }
  .home-page .hero h1 { font-size: clamp(3rem, 4.5vw, 4.8rem); }
  .home-page .hero-lead { margin-top: 12px; line-height: 1.4; }
  .home-news-heading { padding-top: 7px; }
  .home-news-card { padding: 9px 12px; }
  .site-header { height: 76px; }
  .home-page .hero-hub { padding-top: 76px; }
}

@media (max-width: 940px) and (min-width: 761px) {
  .desktop-nav { gap: 18px; }
  .home-page .hero { grid-template-columns: 48% 52%; }
  .home-news-heading strong { display: none; }
  .home-news-card h2 { font-size: .86rem; }
  footer { grid-template-columns: 180px 1fr 100px; }
}

@media (max-width: 1050px) and (min-width: 761px) {
  .toponymy-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sit-service-gallery { grid-template-columns: 1fr; }
  .sit-service-feature { display: grid; grid-template-columns: 1.15fr 1fr; }
  .sit-service-feature-image { aspect-ratio: auto; min-height: 280px; }
  .urbanistica-feature-wide, .signage-detail { grid-template-columns: 1fr; }
  .service-showcase-grid { grid-template-columns: 1fr; }
  .service-showcase-card { display: grid; grid-template-columns: 1.1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 132px; }
  .home-page { height: auto; min-height: 0; overflow: visible; }
  .home-page .hero { display: block; min-height: 0; }
  .home-page .hero-copy { min-height: 800px; padding: 132px 7vw 38px; grid-template-rows: auto auto; }
  .home-page .hero h1 { font-size: clamp(3.35rem, 16vw, 5rem); }
  .home-news-heading { display: grid; gap: 5px; }
  .home-news-grid { grid-template-columns: 1fr; }
  .home-news-card { min-height: 116px; }
  .home-page .hero-hub { height: auto; min-height: 900px; padding-top: 0; grid-template-rows: minmax(520px, 2fr) minmax(300px, 1fr); }
  .hub-description-card { flex: 0 0 72%; padding: 22px 18px 22px 42px; scroll-snap-align: start; }
  .hub-description-card small { font-size: .92rem; }
  .hub-description-card strong { font-size: 1.38rem; }
  .hub-description-card p { font-size: .92rem; }
  .hub-project-copy strong { font-size: clamp(1.7rem, 8vw, 2.35rem); }
  .hub-services-feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hub-services-band { grid-row: auto; min-height: 520px; padding: 14px; }
  .hub-services-band .hub-services-copy { padding: 18px; }
  .hub-services-band .hub-services-copy strong { font-size: 1.4rem; }
  .hub-services-band .hub-services-copy p { font-size: .82rem; }
  .hub-services-copy { padding: 14px; }
  .hub-services-copy strong { font-size: 1.12rem; }
  .hub-services-copy p { font-size: .72rem; }
  .repository-carousel .repository-scroll { padding: 0 52px; }
  .repository-project-card { flex-basis: 72%; }
  .repository-project-copy strong { font-size: 1.35rem; }
  .repository-arrow { width: 44px; height: 44px; }
  .inner-title-row { align-items: flex-start; flex-direction: column; gap: 24px; }
  .back-home { order: -1; margin: 0; }
  .inner-page { min-height: calc(100svh - 132px); }
  .inner-hero { padding: 48px 7vw 54px; }
  .inner-hero h1 { font-size: 4rem; }
  .inner-content { padding: 62px 0 82px; }
  .about-content, .method-page-content, .contact-page-content { display: block; }
  .about-content > div:last-child, .method-page-content .process-list, .contact-page-content address { margin-top: 52px; }
  .services-page-grid { grid-template-columns: 1fr; }
  .services-page-grid .service-card { min-height: 330px; }
  .sit-service-lead, .sit-service-points { grid-template-columns: 1fr; }
  .sit-service-gallery, .toponymy-feature-grid, .projects-page-grid { grid-template-columns: 1fr; }
  .toponymy-service-intro, .service-detail-intro { grid-template-columns: 1fr; }
  .page-return-actions { width: 100%; flex-wrap: wrap; margin-left: 0; }
  .urbanistica-service-content { width: 90vw; padding-top: 54px; gap: 32px; }
  .urbanistica-intro, .urbanistica-feature-grid, .urbanistica-feature-wide, .signage-detail { grid-template-columns: 1fr; }
  .urbanistica-intro { gap: 28px; }
  .urbanistica-hero-media img { height: 58vw; min-height: 260px; }
  .urbanistica-feature-wide { display: grid; }
  .urbanistica-feature-image, .urbanistica-feature-image img { min-height: 250px; }
  .urbanistica-macro { margin-top: 42px; padding-top: 52px; }
  .signage-detail-image { min-height: 320px; }
  .service-showcase-content { width: 90vw; padding-top: 54px; }
  .service-showcase-intro, .service-showcase-grid, .service-showcase-card { grid-template-columns: 1fr; }
  .service-showcase-intro { gap: 28px; }
  .service-showcase-image { height: 58vw; min-height: 260px; }
  .service-example { align-items: flex-start; flex-direction: column; }
  .census-documents-heading, .census-document-grid { grid-template-columns: 1fr; }
  .census-documents-heading { gap: 22px; }
  .census-document-cover { height: 360px; }
  .back-to-top { right: 16px; bottom: 148px; }
  footer { height: 132px; min-height: 132px; padding: 8px 6vw; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: center; gap: 4px 12px; }
  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-details { grid-column: 1 / -1; grid-row: 2; }
  .footer-meta { grid-column: 2; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-intro::before, .logo-intro-mark, .logo-intro-mark img, .logo-intro-scan, .logo-intro-name, .logo-intro-rule { animation: none; }
  .logo-intro-mark { clip-path: none; }
  .logo-intro-name { opacity: 1; transform: none; }
  .logo-intro-rule { width: min(440px,72vw); }
}
