@font-face {
  font-family: Geist;
  src: url('/assets/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #232326;
  --muted: #5f5e61;
  --paper: #f7f6f3;
  --white: #fff;
  --border: #dedcd7;
  --red: #bd2632;
  --bright: #ff626b;
  --dark: #19191c;
  font-family: Geist, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2975bb; outline-offset: 4px; }
.shell { width: min(100% - 96px, 1280px); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: -12rem; z-index: 10; padding: 12px; background: var(--white); }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header { background: var(--paper); position: relative; z-index: 1; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; min-height: 85px; }
.brand { display: inline-flex; width: fit-content; padding: 5px 0; }
.brand img { width: 115px; height: auto; }
.navigation { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); justify-content: center; }
.navigation a, .footer a { text-decoration: none; }
.navigation a { font-size: 0.94rem; font-weight: 600; padding-block: 12px; white-space: nowrap; }
.navigation a:hover, .navigation a[aria-current] { color: var(--red); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 13px;
  min-height: 51px; padding: 12px 19px; border: 1px solid transparent; border-radius: 6px;
  background: var(--red); color: var(--white); font-weight: 650; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; transition: background .16s ease, color .16s ease;
}
.button:hover { background: #9d1925; }
.button > span, .text-link span { font-size: 1.2em; line-height: 1; }
.header-button, .button-outline { background: transparent; color: var(--ink); border-color: #a8a5a1; }
.header-button { justify-self: end; min-height: 42px; padding: 7px 15px; font-size: .89rem; }
.header-button:hover, .button-outline:hover, .header-button[aria-current] { background: var(--ink); color: var(--white); }

.hero {
  color: var(--white); background-color: var(--dark);
  background-image: linear-gradient(90deg, #17171bf2 0%, #17171bb9 37%, #17171b1c 66%, #17171b03 100%), url('/assets/hero.webp');
  background-position: center 51%; background-size: cover;
}
.hero-inner { min-height: clamp(540px, 44vw, 680px); display: flex; align-items: center; padding-block: 66px 81px; }
.hero-copy { max-width: 730px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--red); font-size: .77rem; line-height: 1.45; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow, .consultation .eyebrow { color: #f1eae9; }
.dot { display: inline-block; flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--bright); }
h1, h2, h3 { font-weight: 680; }
h1 { font-size: clamp(3.8rem, 7.1vw, 7.3rem); line-height: .99; letter-spacing: -.079em; }
.hero h1 { margin: 21px 0; }
.hero h1 em { color: var(--bright); font-style: normal; }
.hero-description { font-size: clamp(1.06rem, 1.55vw, 1.28rem); line-height: 1.62; color: #f0e9ea; max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 25px; row-gap: 12px; margin-top: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding-block: 9px; font-size: .92rem; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { color: #ff9aa2; }

.section { padding-block: 76px 90px; scroll-margin-top: 24px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 2fr) minmax(245px, 1fr); align-items: end; gap: 32px; margin-bottom: 32px; }
.section-heading h2, .consultation h2 { margin-top: 8px; }
h2 { font-size: clamp(2.1rem, 4.1vw, 3.9rem); line-height: 1.03; letter-spacing: -.061em; }
.section-heading > p, .lead, .card-copy > p:not(.category), .options p { color: var(--muted); line-height: 1.6; }
.section-heading > p { max-width: 310px; justify-self: end; padding-bottom: 4px; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 11px; background: var(--white); overflow: hidden; text-decoration: none; transition: border-color .2s ease; }
.service-card:hover { border-color: var(--red); }
.service-image { display: grid; place-items: center; position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #dbd8d2; }
.service-image img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; transition: transform .3s ease; }
.service-card:hover img { transform: scale(1.035); }
.image-climatizzazione img { object-position: 60% 48%; }
.image-pompe-di-calore img { object-position: 50% 67%; }
.image-caldaie { background: radial-gradient(ellipse at 60% 32%, #f7f3ee 0%, #d6d0c7 100%); }
.image-caldaie img { inset: 9% 20%; width: 60%; height: 82%; object-fit: contain; filter: drop-shadow(12px 10px 10px #51483d48); }
.card-copy { display: flex; flex-direction: column; align-items: start; flex: 1; padding: 24px; }
.category { color: var(--red); font-size: .78rem; font-weight: 650; }
.card-copy h3 { margin: 7px 0 9px; font-size: clamp(1.45rem, 2.45vw, 2.02rem); line-height: 1.08; letter-spacing: -.047em; }
.card-copy > p:not(.category) { font-size: .96rem; margin-bottom: 22px; }
.card-more { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--border); margin-top: auto; padding-top: 13px; color: var(--red); font-size: .89rem; font-weight: 680; }
.card-more span { font-size: 1.2rem; }

.territory { background: #eeece8; }
.territory-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .95fr); gap: clamp(24px, 5vw, 70px); align-items: center; padding-block: 60px; }
.territory-inner .eyebrow { margin-bottom: 8px; }
.territory-inner p:not(.eyebrow) { color: var(--muted); margin-top: 12px; line-height: 1.6; }
.city-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.city-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 6px; background: var(--paper); text-decoration: none; font-weight: 650; }
.city-links a span { color: var(--red); }
.city-links a:hover { border-color: var(--red); color: var(--red); }
.zones-intro { padding-block: 8px 0; }
.city-hero .lead { max-width: 680px; }

.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 28px 0 0; list-style: none; }
.partner-intro { margin-top: 14px; max-width: 740px; }
.partner-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; text-decoration: none; }
.partner-card:hover { border-color: var(--red); }
.partner-logo { display: grid; align-items: center; justify-items: start; height: 105px; padding: 17px 22px; border-bottom: 1px solid var(--border); }
.partner-logo img { max-width: 100%; max-height: 70px; width: 165px; object-fit: contain; object-position: left center; }
.partner-copy { padding: 17px 22px; }
.partner-copy h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; font-size: 1.17rem; letter-spacing: -.03em; }
.partner-copy h3 span { color: var(--red); }
.partner-copy p { margin-top: 5px; font-size: .88rem; line-height: 1.4; color: var(--muted); }

.consultation { background: var(--dark); color: var(--white); }
.consultation-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding-block: 65px; }
.consultation p:not(.eyebrow) { max-width: 590px; margin-top: 13px; color: #e6dddc; line-height: 1.65; }
.footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; padding-block: 24px; font-size: .87rem; }
.footer-inner a { color: var(--red); font-weight: 650; }
.footer-inner a:hover, .footer-inner a[aria-current] { text-decoration: underline; }

.detail-intro { padding-block: 28px 70px; background: #eeece8; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 38px; color: var(--muted); font-size: .88rem; }
.breadcrumb a { text-underline-offset: 3px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.detail-intro h1 { max-width: 730px; font-size: clamp(2.75rem, 5.6vw, 5.5rem); line-height: 1.01; letter-spacing: -.07em; margin: 12px 0 20px; }
.lead { max-width: 540px; font-size: 1.13rem; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 27px; }
.detail-actions .button + .button:not(.button-outline) { background: transparent; color: var(--ink); border-color: #a8a5a1; }
.detail-actions .button + .button:not(.button-outline):hover { background: var(--ink); color: var(--white); }
.detail-grid .service-image { border-radius: 11px; aspect-ratio: 16 / 12; }
figcaption { margin-top: 9px; color: var(--muted); font-size: .8rem; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 30px; }
.options article { border-top: 2px solid var(--red); padding-top: 19px; }
.options h3 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 9px; }
.options h3 a { text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.options h3 a span { color: var(--red); font-size: .8em; }

.quote-grid { display: grid; grid-template-columns: 1fr 1.13fr; align-items: start; gap: clamp(28px, 5vw, 80px); }
.quote-intro { padding-top: 24px; }
.quote-operator { margin-top: 30px; }
.quote-operator h2, .legal-content h2 { font-size: 1.5rem; letter-spacing: -.035em; margin-bottom: 10px; }
.quote-operator p, .legal-content p { color: var(--muted); line-height: 1.65; }
.legal-content { display: grid; gap: 28px; }
.legal-content section { max-width: 720px; }
.legal-content p + p { margin-top: 10px; }
.legal-content a { color: var(--red); text-underline-offset: 3px; }
.quote-card { padding: clamp(20px, 3.3vw, 42px); border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.quote-card form { display: grid; gap: 9px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 9px; }
.form-row > div { min-width: 0; }
.quote-card label { display: block; font-size: .9rem; font-weight: 650; }
.form-row label { margin-bottom: 9px; }
.quote-card label span { color: var(--muted); font-weight: 450; }
.quote-card input, .quote-card textarea, .quote-card select { width: 100%; border: 1px solid #a8a5a1; border-radius: 5px; padding: 11px; color: var(--ink); min-height: 46px; background: var(--white); }
.quote-card textarea { resize: vertical; }
.quote-card form > label[for='details'] { margin-top: 9px; }
.quote-card form .button { justify-self: start; margin-top: 10px; }
.quote-result { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--border); }
.quote-result h2 { font-size: 1.65rem; margin-bottom: 10px; letter-spacing: -.04em; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#status { margin-top: 9px; font-size: .9rem; }
#status:empty { margin-top: 0; }

@media (max-width: 1000px) {
  .shell { width: min(100% - 64px, 1280px); }
  .header-inner { gap: 14px; }
  .brand img { width: 105px; }
  .navigation { gap: 18px; }
  .navigation a { font-size: .86rem; }
  .card-copy { padding: 19px; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 12px; min-height: auto; }
  .header .brand { margin-block: 7px; }
  .header .brand img { width: 92px; }
  .header-button { grid-row: 1; grid-column: 2; min-height: 39px; padding-inline: 11px; }
  .navigation { grid-column: 1 / -1; gap: 8px; justify-content: space-between; border-top: 1px solid var(--border); }
  .navigation a { padding-block: 13px; font-size: clamp(.73rem, 2.7vw, .86rem); }
  .hero { background-image: linear-gradient(0deg, #17171b 3%, #17171bf8 39%, #17171b38 75%, #17171b13 100%), url('/assets/hero-mobile.webp'); background-position: center top, 67% top; background-size: cover, auto 72%; background-repeat: no-repeat; }
  .hero-inner { min-height: 610px; align-items: end; padding-block: 220px 42px; }
  .hero h1 { font-size: clamp(3.15rem, 11vw, 5.5rem); margin: 14px 0; }
  .hero-actions { margin-top: 24px; }
  .section { padding-block: 49px 57px; }
  .section-heading, .services, .options, .consultation-inner, .detail-grid, .quote-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 12px; margin-bottom: 24px; }
  .section-heading > p { justify-self: start; max-width: 480px; }
  .services { gap: 16px; }
  .partner-grid { grid-template-columns: 1fr; gap: 12px; }
  .partner-card { display: grid; grid-template-columns: minmax(100px, 33%) 1fr; align-items: stretch; }
  .partner-logo { height: auto; min-height: 86px; padding: 12px; border-bottom: 0; border-right: 1px solid var(--border); }
  .partner-copy { padding: 15px 12px; }
  .service-image { aspect-ratio: 17 / 10; }
  .consultation-inner { padding-block: 42px; gap: 22px; }
  .territory-inner { grid-template-columns: 1fr; padding-block: 42px; }
  .zones-intro { padding-block: 0; }
  .detail-intro { padding-block: 20px 42px; }
  .breadcrumb { margin-bottom: 25px; }
  .detail-grid { gap: 26px; }
  .detail-grid .service-image { aspect-ratio: 16 / 10; }
  .quote-intro { padding-top: 0; }
}

@media (max-width: 380px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { display: grid; justify-items: start; }
  .city-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
