:root {
  --green: #171717;
  --green-dark: #050505;
  --orange: #d71920;
  --orange-dark: #ae1016;
  --sage: #f4f4f4;
  --line: #d4d4d4;
  --muted: #5d5d5d;
  --white: #fff;
  --max: 1440px;
  --gutter: clamp(24px, 5vw, 72px);
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--green-dark);
  background: var(--white);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--white); }
body, button, input, select, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 55%, white); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--green); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.section-shell { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.site-header { height: 120px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; background: white; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--green-dark); text-decoration: none; font-size: 20px; font-weight: 500; letter-spacing: .01em; }
.brand strong { display: inline; font-weight: 700; }
.brand-mark { width: 54px; height: 42px; fill: none; color: var(--orange); stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.brand-logo { display: block; width: auto; height: 106px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 42px; }
.site-nav a { text-decoration: none; font-size: 16px; font-weight: 500; }
.site-nav a:not(.nav-cta):hover { color: var(--orange); }
.nav-cta { padding: 14px 24px; color: white; background: var(--orange); }
.nav-cta:hover { background: var(--orange-dark); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; }
.menu-toggle > span:not(.sr-only) { width: 26px; height: 2px; background: var(--green); display: block; margin: 5px; }

.hero { max-width: var(--max); min-height: 650px; margin: 0 auto; padding-left: var(--gutter); display: grid; grid-template-columns: 1fr 1.04fr; align-items: stretch; }
.hero-copy { align-self: center; padding: 72px 56px 72px 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-size: clamp(48px, 5.6vw, 82px); line-height: 1.04; letter-spacing: -.052em; font-weight: 600; color: var(--green-dark); }
.key-word { display: inline; font-weight: inherit; letter-spacing: inherit; color: var(--orange); text-shadow: none; }
.key-word-accent { color: var(--orange); }
.key-word-small { letter-spacing: inherit; }
.key-word-light { color: #ff3b41; }
.hero-copy > p { max-width: 610px; margin-bottom: 38px; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; color: #333; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { min-height: 54px; padding: 15px 24px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--orange); }
.button-primary:hover { background: var(--orange-dark); }
.button-secondary { border-color: var(--green); color: var(--green); background: white; }
.button-secondary:hover { color: white; background: var(--green); }
.button-call { gap: 10px; white-space: nowrap; }
.button-call svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.premium-media {
  --media-x: 0px;
  --media-y: 0px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #e8ece8;
}
.premium-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--media-x), var(--media-y), 0) scale(1.045);
  transition: transform 1.3s cubic-bezier(.2,.75,.2,1), filter 1.3s ease;
  will-change: transform;
}
.premium-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.17) 48%, transparent 70%);
  transform: translateX(-130%);
  animation: premiumSheen 11s 1.8s cubic-bezier(.5,0,.25,1) infinite;
  mix-blend-mode: soft-light;
}
.premium-media-glow {
  position: absolute;
  z-index: 2;
  inset: auto 7% 8% auto;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255,239,207,.16);
  filter: blur(52px);
  animation: premiumGlow 7s ease-in-out infinite alternate;
}
.hero-media { min-height: 650px; }
.hero-media img { object-position: 61% center; animation: heroDrift 18s ease-in-out infinite alternate; }
@keyframes heroDrift {
  from { transform: translate3d(var(--media-x), var(--media-y), 0) scale(1.045); }
  to { transform: translate3d(calc(var(--media-x) - 12px), calc(var(--media-y) - 5px), 0) scale(1.085); }
}
@keyframes premiumSheen { 0%, 68% { transform: translateX(-130%); } 92%, 100% { transform: translateX(130%); } }
@keyframes premiumGlow { to { opacity: .55; transform: translate3d(-9%, -7%, 0) scale(1.12); } }

.proof { background: var(--sage); }
.proof .section-shell { padding-top: 48px; padding-bottom: 48px; }
.proof h2 { margin-bottom: 34px; font-size: clamp(27px, 2.4vw, 38px); letter-spacing: -.03em; }
.proof-rail { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { min-height: 76px; padding: 0 clamp(16px, 3vw, 44px); display: flex; align-items: center; gap: 20px; border-right: 1px solid var(--line); font-size: clamp(17px, 1.4vw, 21px); }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { border-right: 0; }
.proof-item svg { width: 50px; height: 50px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.services { padding-top: 120px; padding-bottom: 120px; display: grid; grid-template-columns: 1fr .95fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.services h2, .method > h2, .contact h2 { font-size: clamp(42px, 4.4vw, 68px); line-height: 1.08; letter-spacing: -.047em; }
.service-list article { display: grid; grid-template-columns: 45px 1fr; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.service-list article > span { color: var(--orange); font-weight: 700; }
.service-list h3 { margin-bottom: 6px; font-size: 20px; }
.service-list p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.services-media { width: 100%; height: 650px; margin: 0; }
.services-media img { object-position: 52% center; }
.reveal-media { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.22,.72,.2,1); }
.reveal-media.is-visible { clip-path: inset(0 0 0 0); }
.reveal-media.is-visible img { animation: detailDrift 16s 1s ease-in-out infinite alternate; }
@keyframes detailDrift {
  from { transform: translate3d(var(--media-x), var(--media-y), 0) scale(1.045); }
  to { transform: translate3d(calc(var(--media-x) + 9px), calc(var(--media-y) - 9px), 0) scale(1.08); }
}

.expertise { color: white; background: #111; }
.expertise-shell { padding-top: 108px; padding-bottom: 108px; display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(56px, 8vw, 130px); }
.expertise-heading h2 { margin-bottom: 28px; font-size: clamp(40px, 4.2vw, 66px); line-height: 1.08; letter-spacing: -.047em; }
.expertise-heading p { max-width: 560px; margin-bottom: 0; color: #cfcfcf; font-size: 18px; line-height: 1.7; }
.expertise-grid { border-top: 1px solid #3c3c3c; }
.expertise-grid article { display: grid; grid-template-columns: 42px 1fr; gap: 8px 22px; padding: 26px 0; border-bottom: 1px solid #3c3c3c; }
.expertise-index { grid-row: 1 / 3; color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.expertise-grid h3 { margin-bottom: 0; font-size: 23px; }
.expertise-grid p { max-width: 630px; margin-bottom: 0; color: #bdbdbd; line-height: 1.65; }

.visual-break { padding-top: clamp(72px, 9vw, 138px); padding-bottom: clamp(72px, 9vw, 138px); display: flex; }
.visual-break-right { justify-content: flex-end; }
.visual-break-left { justify-content: flex-start; }
.visual-break-frame { width: min(68%, 960px); aspect-ratio: 16 / 8.5; margin: 0; overflow: hidden; }
.visual-break-frame-wide { width: min(76%, 1080px); aspect-ratio: 16 / 7.5; }
.visual-break-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.visual-break-right .visual-break-frame img { object-position: 50% 42%; }
.visual-break-left .visual-break-frame img { object-position: 56% 46%; }

.calculator-section { background: var(--sage); padding: 90px 0; }
.calculator-shell { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-areas: "heading estimate" "form estimate"; gap: 36px clamp(48px, 7vw, 110px); align-items: start; }
.calculator-heading { grid-area: heading; }
.calculator-heading h2 { margin-bottom: 12px; font-size: clamp(34px, 3.4vw, 52px); line-height: 1.1; letter-spacing: -.04em; }
.calculator-heading p { font-size: 18px; color: var(--muted); }
.calculator-form { grid-area: form; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; line-height: 1.4; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #aebbb4; border-radius: 6px; padding: 14px 15px; color: var(--green-dark); background: white; }
.field input, .field select { min-height: 50px; }
.field textarea { resize: vertical; }
.field-units { grid-column: 1 / -1; }
.range-row { display: flex; align-items: center; gap: 20px; }
.range-row output { width: 54px; font-size: 30px; font-weight: 600; }
input[type="range"] { min-height: auto; padding: 0; border: 0; accent-color: var(--green); background: transparent; }
.range-scale { padding-left: 74px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.estimate { grid-area: estimate; min-height: 420px; padding: clamp(32px, 5vw, 70px); border-left: 1px solid #aaa; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.estimate > span { font-size: 16px; }
.estimate .estimate-label { color: var(--green-dark); font-weight: 700; }
.estimate strong { margin: 14px 0 4px; font-size: clamp(38px, 4.5vw, 64px); line-height: 1.05; letter-spacing: -.05em; white-space: nowrap; }
.estimate small { max-width: 370px; margin-bottom: 26px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.estimate-explanation { width: 100%; margin: 0 0 26px; padding: 18px 0; border-top: 1px solid #bbb; border-bottom: 1px solid #bbb; color: var(--muted); font-size: 14px; line-height: 1.55; }
.estimate .button { width: 100%; }
.estimate p { margin: 16px 0 0; font-size: 12px; color: var(--muted); }

.method { padding-top: 120px; padding-bottom: 120px; }
.method > h2 { max-width: 720px; margin-bottom: 72px; }
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 5vw, 72px); counter-reset: steps; }
.method-steps article { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.method-steps article::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); position: absolute; top: -7px; left: 0; box-shadow: 0 0 0 7px white; }
.method-steps span { display: block; margin-bottom: 36px; color: var(--orange); font-size: 28px; font-weight: 700; }
.method-steps h3 { margin-bottom: 13px; font-size: 22px; }
.method-steps p { color: var(--muted); line-height: 1.7; }

.faq { padding-top: 110px; padding-bottom: 110px; display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(56px, 8vw, 130px); align-items: start; }
.faq-heading { position: sticky; top: 36px; }
.faq-heading h2 { margin-bottom: 22px; font-size: clamp(40px, 4.1vw, 64px); line-height: 1.08; letter-spacing: -.047em; }
.faq-heading p { max-width: 390px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 28px 48px 28px 0; cursor: pointer; list-style: none; font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 24px; right: 4px; color: var(--orange); font-size: 28px; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 720px; margin: -4px 48px 28px 0; color: var(--muted); line-height: 1.7; }

.territory { color: white; background: #090a0a; overflow: hidden; }
.territory-shell { max-width: 1600px; min-height: clamp(720px, 88vh, 900px); padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(280px, .58fr) minmax(0, 1.42fr); gap: clamp(42px, 5vw, 82px); align-items: center; }
.territory-copy h2 { max-width: 390px; margin-bottom: 28px; font-size: clamp(52px, 5.5vw, 84px); line-height: .98; letter-spacing: -.055em; }
.territory-copy p { max-width: 390px; margin-bottom: 40px; font-size: 18px; line-height: 1.7; color: #c7cac9; }
.territory-phone { max-width: 390px; padding: 24px 0; border-top: 1px solid #353938; border-bottom: 1px solid #353938; display: flex; align-items: center; gap: 18px; color: white; text-decoration: none; }
.territory-phone-icon { width: 58px; height: 58px; border: 1px solid var(--orange); border-radius: 50%; display: grid; place-items: center; color: #ff343a; transition: color .25s ease, background .25s ease, transform .25s ease; }
.territory-phone-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.territory-phone small { display: block; margin-bottom: 4px; color: #b7bab9; font-size: 13px; }
.territory-phone strong { color: #ff343a; font-size: clamp(25px, 2.4vw, 36px); line-height: 1; letter-spacing: -.035em; }
.territory-phone:hover .territory-phone-icon { color: white; background: var(--orange); transform: scale(1.05); }
.office-map { min-height: 680px; position: relative; isolation: isolate; border-left: 1px solid #292d2c; background: #0c1110; overflow: hidden; }
.map-viewport { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; }
.map-viewport.is-dragging { cursor: grabbing; }
.map-scene { width: 100%; height: 100%; animation: mapBreathe 16s ease-in-out infinite alternate; }
.map-canvas { --map-scale: 1; --map-x: 0px; --map-y: 0px; width: 100%; height: 100%; position: relative; transform: translate3d(var(--map-x), var(--map-y), 0) scale(var(--map-scale)); transform-origin: 50% 50%; transition: transform .8s cubic-bezier(.2,.75,.2,1); will-change: transform; }
.map-viewport.is-dragging .map-canvas { transition: none; }
.map-art { width: 100%; height: 100%; display: block; }
.map-land { fill: #0f1514; stroke: #26302e; stroke-width: 1.2; }
.map-borders path { fill: none; stroke: #21433b; stroke-width: 1; opacity: .75; }
.map-roads path { fill: none; stroke: #3d4745; stroke-width: 2; opacity: .7; }
.map-roads path:nth-child(even) { stroke-width: 1; opacity: .45; }
.map-coast { fill: #0d2722; opacity: .95; }
.active-route { fill: none; stroke: #ff343a; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 9; animation: routeFlow 9s linear infinite; filter: drop-shadow(0 0 4px rgba(215,25,32,.25)); }
.active-route.is-home { opacity: 0; }
.map-marker { position: absolute; z-index: 2; padding: 0; border: 0; display: flex; align-items: center; gap: 10px; color: white; background: none; text-align: left; cursor: pointer; }
.marker-dot { width: 16px; height: 16px; border: 3px solid #0d1110; border-radius: 50%; display: block; flex: none; background: white; box-shadow: 0 0 0 1px white, 0 0 0 7px transparent; transition: background .25s ease, box-shadow .25s ease, transform .25s ease; }
.map-marker:hover .marker-dot, .map-marker.is-active .marker-dot { background: var(--orange); box-shadow: 0 0 0 1px white, 0 0 0 7px rgba(215,25,32,.32); transform: scale(1.12); }
.map-marker.is-headquarters .marker-dot { width: 19px; height: 19px; box-shadow: 0 0 0 1px white, 0 0 0 9px rgba(215,25,32,.22); }
.marker-label { font-size: 15px; font-weight: 600; line-height: 1.05; text-shadow: 0 2px 8px #000; }
.marker-label small { display: block; margin-top: 4px; color: #c4c7c6; font-size: 11px; font-weight: 400; }
.marker-san-giovanni { left: 28%; top: 25%; }
.marker-cormons { left: 39%; top: 43%; }
.marker-gradisca { left: 45%; top: 66%; }
.marker-gorizia { left: 69%; top: 61%; }
.map-controls { position: absolute; z-index: 5; top: 20px; right: 20px; width: 46px; border: 1px solid #777d7b; border-radius: 6px; overflow: hidden; background: rgba(9,10,10,.82); }
.map-controls button { width: 44px; height: 44px; border: 0; display: block; color: white; background: transparent; font-size: 25px; font-weight: 300; line-height: 1; cursor: pointer; }
.map-controls button + button { border-top: 1px solid #4b504f; }
.map-controls button:hover { color: #ff343a; background: #151a19; }
.office-detail { width: min(31%, 300px); min-width: 250px; position: absolute; z-index: 4; top: 110px; right: 20px; padding: 24px; border-top: 1px solid #484d4b; border-bottom: 1px solid #484d4b; background: rgba(9,12,11,.9); backdrop-filter: blur(12px); }
.office-detail > span { display: block; margin-bottom: 22px; color: #ff343a; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.office-detail h3 { margin-bottom: 12px; font-size: clamp(26px, 2.3vw, 38px); line-height: 1.06; letter-spacing: -.045em; }
.office-detail > p { min-height: 48px; margin-bottom: 18px; color: #d6d8d7; line-height: 1.5; }
.office-detail > a { padding-bottom: 22px; display: inline-flex; align-items: center; gap: 9px; color: #ff343a; font-weight: 600; text-decoration: none; }
.office-detail > a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.office-detail > a:hover svg { transform: translateX(4px); }
.office-index { border-top: 1px solid #343938; }
.office-index button { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #272b2a; display: flex; gap: 13px; color: #777d7b; background: none; font-size: 11px; text-align: left; cursor: pointer; }
.office-index button span { color: #c9cccb; font-size: 13px; }
.office-index button:hover, .office-index button.is-active { color: #ff343a; }
.office-index button.is-active span { color: white; }
@keyframes routeFlow { to { stroke-dashoffset: -150; } }
@keyframes mapBreathe { from { transform: translate3d(-3px, 2px, 0) scale(1.01); } to { transform: translate3d(5px, -4px, 0) scale(1.025); } }

.contact { padding-top: 110px; padding-bottom: 110px; display: grid; grid-template-columns: .58fr 1.42fr; gap: clamp(50px, 7vw, 110px); align-items: start; }
.contact-intro { position: sticky; top: 40px; }
.contact-intro p { max-width: 470px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.contact-note { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--green); font-weight: 600; }
.contact-note span::before { content: "✓"; margin-right: 8px; color: var(--orange); }
.lead-form { display: grid; grid-template-columns: 1fr; gap: 28px; }
.field-wide, .privacy, .form-status { grid-column: 1 / -1; }
.honeypot { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-section { min-width: 0; margin: 0; padding: 30px; border: 1px solid #d5d7d6; border-radius: 8px; background: #fff; box-shadow: 0 18px 60px rgba(5,5,5,.045); }
.form-section legend { width: 100%; margin: 0 0 24px; padding: 0 0 18px; float: left; border-bottom: 1px solid #e2e5e3; color: var(--green-dark); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.form-section legend + * { clear: both; }
.form-section legend span { margin-right: 10px; color: var(--orange); font-size: 13px; letter-spacing: .08em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-three { grid-template-columns: repeat(3, 1fr); }
.choice-heading { margin: 28px 0 13px; font-size: 14px; font-weight: 700; }
.quick-flags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-flag { position: relative; cursor: pointer; }
.quick-flag > input { position: absolute; opacity: 0; pointer-events: none; }
.quick-flag-box { min-height: 104px; padding: 17px 16px; border: 1px solid #ccd0ce; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 4px 10px; background: #fff; transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.quick-flag-box strong { font-size: 15px; }
.quick-flag-box small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.quick-flag-check { width: 23px; height: 23px; border: 1px solid #b7bcba; display: grid; place-items: center; color: transparent; font-size: 13px; }
.quick-flag:hover .quick-flag-box { transform: translateY(-2px); border-color: #9ea5a2; box-shadow: 0 10px 24px rgba(5,5,5,.06); }
.quick-flag > input:focus-visible + .quick-flag-box { outline: 3px solid color-mix(in srgb, var(--orange) 45%, white); outline-offset: 3px; }
.quick-flag > input:checked + .quick-flag-box { border-color: var(--orange); background: #fff8f8; box-shadow: inset 0 0 0 1px var(--orange); }
.quick-flag > input:checked + .quick-flag-box .quick-flag-check { border-color: var(--orange); color: white; background: var(--orange); }
.form-section-critical { background: linear-gradient(145deg, #fff 0%, #faf9f9 100%); }
.form-help { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.issue-flags { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.issue-flags label { position: relative; cursor: pointer; }
.issue-flags input { position: absolute; opacity: 0; pointer-events: none; }
.issue-flags span { padding: 10px 14px; border: 1px solid #cfd2d1; border-radius: 999px; display: inline-flex; color: #343434; background: white; font-size: 13px; transition: all .18s ease; }
.issue-flags input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--orange) 45%, white); outline-offset: 3px; }
.issue-flags input:checked + span { border-color: var(--green-dark); color: white; background: var(--green-dark); }
.form-section-critical .field + .field { margin-top: 20px; }
.field small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.privacy { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.privacy input { margin-top: 2px; accent-color: var(--green); }
.privacy a { color: var(--orange-dark); }
.form-submit-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.form-submit-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.lead-form .button { min-width: 290px; }
.form-status { padding: 14px; color: var(--green); background: var(--sage); border-left: 3px solid var(--green); }
.form-status.is-error { color: #8d1015; border-left-color: var(--orange); }

.site-footer { min-height: 140px; padding: 32px var(--gutter); display: grid; grid-template-columns: auto 1fr auto; gap: 50px; align-items: center; color: white; background: var(--green-dark); }
.footer-brand { color: white; }
.footer-brand .brand-logo { height: 92px; }
.site-footer nav { display: flex; gap: 30px; }
.site-footer nav a { color: #dedede; text-decoration: none; }
.site-footer p { margin: 0; color: #dedede; font-size: 14px; }

@media (max-width: 980px) {
  .site-header { height: 84px; position: relative; }
  .brand { font-size: 17px; }
  .brand-mark { width: 46px; }
  .brand-logo { height: 70px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; z-index: 20; top: 84px; left: var(--gutter); right: var(--gutter); padding: 22px; flex-direction: column; align-items: stretch; gap: 0; background: white; border: 1px solid var(--line); box-shadow: 0 16px 35px rgba(10,44,37,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px; }
  .site-nav .nav-cta { margin-top: 8px; text-align: center; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-left: 0; }
  .hero-copy { padding: 70px var(--gutter); }
  .hero-media { min-height: 520px; }
  .services { grid-template-columns: 1fr; }
  .services-media { height: 520px; }
  .expertise-shell, .faq { grid-template-columns: 1fr; }
  .faq-heading { position: static; }
  .calculator-shell { grid-template-columns: 1fr; grid-template-areas: "heading" "form" "estimate"; }
  .estimate { border-left: 0; border-top: 1px solid #aebbb4; }
  .territory-shell { grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 70px; }
  .territory-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; align-items: end; }
  .territory-copy h2 { grid-column: 1; }
  .territory-copy p { grid-column: 1; }
  .territory-phone { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .office-map { min-height: 570px; border-left: 0; border-top: 1px solid #292d2c; }
  .contact { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
  .quick-flags { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 680px) {
  .brand span { max-width: 190px; line-height: 1.05; }
  .brand strong { display: block; }
  .brand-logo { height: 66px; }
  .hero-copy { padding-top: 56px; padding-bottom: 56px; }
  h1 { font-size: 48px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-media { min-height: 390px; background-position: 63% center; }
  .proof-rail { grid-template-columns: 1fr; }
  .proof-item { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .services { padding-top: 80px; padding-bottom: 80px; }
  .services h2, .method > h2, .contact h2 { font-size: 40px; }
  .services-media { height: 400px; }
  .expertise-shell { padding-top: 78px; padding-bottom: 78px; }
  .calculator-section { padding: 70px 0; }
  .visual-break { padding-top: 72px; padding-bottom: 72px; }
  .visual-break-frame, .visual-break-frame-wide { width: 100%; aspect-ratio: 4 / 3; }
  .calculator-form { grid-template-columns: 1fr; }
  .field-units { grid-column: auto; }
  .estimate { min-height: 320px; padding: 40px 0; }
  .estimate strong { font-size: 39px; }
  .method { padding-top: 80px; padding-bottom: 80px; }
  .method-steps { grid-template-columns: 1fr; gap: 52px; }
  .faq { padding-top: 80px; padding-bottom: 80px; }
  .territory-shell { min-height: 0; padding-top: 72px; padding-bottom: 0; padding-left: 0; padding-right: 0; gap: 48px; }
  .territory-copy { padding: 0 var(--gutter); display: block; }
  .territory-copy h2 { font-size: 54px; }
  .territory-phone { margin-top: 30px; }
  .office-map { min-height: 690px; }
  .map-viewport { height: 390px; touch-action: auto; }
  .map-canvas { transform: none !important; }
  .map-controls { display: none; }
  .map-marker { gap: 7px; }
  .marker-dot { width: 13px; height: 13px; }
  .marker-label { font-size: 12px; }
  .marker-san-giovanni { left: 19%; top: 23%; }
  .marker-cormons { left: 32%; top: 42%; }
  .marker-gradisca { left: 36%; top: 67%; }
  .marker-gorizia { left: 67%; top: 60%; }
  .office-detail { width: auto; min-width: 0; top: 390px; left: var(--gutter); right: var(--gutter); padding: 26px 0 0; background: #090a0a; backdrop-filter: none; }
  .office-detail > span { margin-bottom: 14px; }
  .office-detail h3 { font-size: 30px; }
  .office-detail > p { min-height: 0; }
  .office-index { display: grid; grid-template-columns: 1fr 1fr; }
  .office-index button:nth-child(odd) { padding-right: 14px; }
  .contact { padding-top: 80px; padding-bottom: 80px; }
  .form-section { padding: 24px 18px; }
  .form-grid, .form-grid-three { grid-template-columns: 1fr; }
  .quick-flags { grid-template-columns: 1fr; }
  .quick-flag-box { min-height: 88px; }
  .field-wide, .privacy, .form-status { grid-column: auto; }
  .form-submit-row { grid-template-columns: 1fr; }
  .lead-form .button { width: 100%; min-width: 0; }
  .site-footer { padding-top: 50px; padding-bottom: 50px; }
  .site-footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .active-route, .map-scene { animation: none; }
  .premium-media::after, .premium-media-glow, .premium-media img { animation: none !important; }
  .premium-media img { transform: none !important; }
  .reveal-media { clip-path: none; }
}

.legal-page { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 96px; }
.legal-page h1 { margin: 36px 0 12px; font-size: clamp(42px, 7vw, 72px); }
.legal-page h2 { margin: 40px 0 10px; font-size: 24px; }
.legal-page p { color: var(--muted); line-height: 1.75; }
.legal-page a { color: var(--orange-dark); }
.legal-back { color: var(--green-dark) !important; font-weight: 700; text-decoration: none; }
.legal-updated { font-size: 14px; }
