/* Mappa Solare landing page. Colours and sizes from the Claude Design canvas
   (Main.dc.html, version 18). Fonts are self-hosted (copied from
   @fontsource at build time), so the page makes no third-party requests. */

@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(fonts/open-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(fonts/open-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(fonts/open-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(fonts/open-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url(fonts/open-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url(fonts/open-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Merriweather"; font-weight: 400; font-display: swap; src: url(fonts/merriweather-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Merriweather"; font-weight: 400; font-display: swap; src: url(fonts/merriweather-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Merriweather"; font-weight: 700; font-display: swap; src: url(fonts/merriweather-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Merriweather"; font-weight: 700; font-display: swap; src: url(fonts/merriweather-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --sun: #F9D74D;
    --orange: #EE7A23;
    --peach: #F7A35D;
    --rust: #b65503;
    --brown: #73461a;
    --olive: #515944;
    --ink: #151515;
    --text: #4a4a4a;
    --paper: #f8f8f8;
    --line: #e4e0d2;
    --serif: Merriweather, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Open Sans", Arial, sans-serif; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--brown); }
a:hover { color: #4f2f10; }
h1, h2, h3 { font-family: var(--serif); margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.sec { padding: 88px 24px; }
.sec-white { background: #fff; }
.sec-dark { background: var(--ink); color: var(--paper); }
.sec-olive { background: var(--olive); color: var(--paper); }
.sec-head { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.sec-head h2 { font-size: 36px; color: var(--olive); line-height: 1.25; }
.sec-head p { color: var(--text); }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brown); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 8px; border: none; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-dark { background: var(--ink); color: #fff; height: 56px; }
.btn-dark:hover { color: #fff; background: #333; }
.btn-sun { background: var(--peach); color: var(--ink); }
.btn-sun:hover { color: var(--ink); background: #f59a4c; }

/* Header */
.topbar { background: var(--sun); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(123,75,29,0.18); }
.nav { padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #23324f; margin-right: auto; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: 0.2px; }
.brand:hover { color: #23324f; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 600; font-size: 16px; }
.nav-links a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav-links a:hover { text-decoration: underline; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 8px; background: transparent; cursor: pointer; }
.menu-btn svg { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }

/* Hero */
.hero { background: var(--sun); clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); padding: 56px 24px 120px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 56px; line-height: 1.15; }
.lead { font-size: 20px; color: #3d3d3d; max-width: 560px; }
.search { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; }
.search input { flex: 1 1 260px; min-width: 0; height: 56px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 8px; font: inherit; font-size: 18px; background: #fff; }
.note { font-size: 15px; color: var(--text); }
.hero-visual { flex: 1 1 440px; min-width: 0; }
.slides { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; border: 6px solid #fff; box-shadow: 0 24px 48px rgba(81,89,68,0.28); overflow: hidden; background: #ece6d6; }
.slide { position: absolute; inset: 0; overflow: hidden; }
.slide > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide > img.muted { filter: saturate(0.6); }
.shade-dark, .shade-sun { position: absolute; inset: 0; }
.shade-dark { background: rgba(21,21,21,0.38); }
.shade-sun { background: rgba(249,215,77,0.35); }
.pos-center { object-position: 50% 50%; }
.pos-top-left { object-position: 0 0; }
.pos-top { object-position: 50% 0; }

.legend { position: absolute; right: 16px; top: 16px; background: rgba(255,255,255,0.95); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.3; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.legend p { margin-bottom: 8px; font-weight: 700; }
.legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { display: inline-block; width: 18px; height: 12px; border-radius: 2px; border: 1px solid #8a8a8a; }
.sw-0 { background: #2B83BA; } .sw-1 { background: #ABDDA4; } .sw-2 { background: #FFFFBF; } .sw-3 { background: #FDAE61; } .sw-4 { background: #D7191C; }

.report-card { position: absolute; left: 50%; top: 44%; width: 54%; transform: translate(-50%, -50%) rotate(-4deg); background: #fff; border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,0.35); overflow: hidden; }
.report-card-head { background: var(--sun); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-weight: 700; font-size: 14px; }
.pdf { font-family: "Open Sans", Arial, sans-serif; font-size: 10px; padding: 2px 6px; border-radius: 4px; background: var(--ink); color: #fff; }
.report-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; }

.sizing-card { position: absolute; left: 50%; top: 44%; width: 66%; transform: translate(-50%, -50%); background: #fff; border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,0.25); padding: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.4; }
.sizing-title { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.sizing-card dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sizing-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.sizing-card dt { color: var(--text); }
.sizing-card dd { margin: 0; font-weight: 700; text-align: right; }
.proposal { background: #fdf1dc; border: 1px solid var(--peach); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; color: #3d3d3d; }
.proposal-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brown); }
.proposal-value { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); }

.captions { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,0.96); border-radius: 12px; padding: 12px 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.16); display: flex; flex-direction: column; gap: 10px; }
.caption-stack { display: grid; }
.slide-text { grid-area: 1 / 1; font-weight: 700; font-size: 15px; line-height: 1.35; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress > span { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.fill { display: block; height: 100%; background: var(--orange); transform-origin: left center; }

/* Slideshow: four slides of 4 s each, a 16 s loop. */
@keyframes msfade { 0% { opacity: 1; } 22% { opacity: 1; } 25% { opacity: 0; } 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes msfill { 0% { transform: scaleX(0); } 25% { transform: scaleX(1); } 25.1% { transform: scaleX(0); } 100% { transform: scaleX(0); } }
@keyframes mspan { 0% { transform: scale(1); } 25% { transform: scale(1.1); } 100% { transform: scale(1); } }
.slide, .slide-text { animation: msfade 16s linear infinite both; }
.fill { animation: msfill 16s linear infinite both; }
.pan { animation: mspan 16s ease-in-out infinite; }
.d2 { animation-delay: -12s; } .d3 { animation-delay: -8s; } .d4 { animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .slide, .slide-text, .fill, .pan { animation: none; }
    .slide, .slide-text { opacity: 0; }
    .slide.d1, .slide-text.d1 { opacity: 1; }
    .fill { transform: scaleX(0); }
}

/* Stats */
.stats { padding: 0 24px; margin-top: -40px; position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); color: var(--text); }
.stat-num { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--olive); line-height: 1.3; }

/* Features */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { display: flex; flex-direction: column; background: var(--paper); border-radius: 14px; overflow: hidden; }
.feature-img { aspect-ratio: 16 / 9; overflow: hidden; background: #ece6d6; border-bottom: 1px solid var(--line); }
.feature-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.feature-body h3 { font-size: 21px; }
.feature-body p { color: var(--text); font-size: 16px; }

/* Video */
.video-box { flex: 999 1 620px; min-width: 0; border-radius: 16px; overflow: hidden; background: #2a2a2a; }
.video-box video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.video-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.video-text h2 { font-size: 34px; color: var(--sun); }
.video-text > p { color: #d6d6d6; }
.chapters { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.chapters li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #333; }
.chapter-n { font-family: var(--serif); font-weight: 700; color: var(--peach); min-width: 22px; }
.music-credit { font-size: 13px; color: #a8a8a8; }
.music-credit a { color: #d6d6d6; }

/* Municipalities */
.comuni { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.map { flex: 0 1 540px; min-width: 0; width: 100%; max-width: 540px; }
.map-svg { display: block; width: 100%; height: auto; background: #fff; border-radius: 16px; border: 1px solid var(--line); font-family: "Open Sans", Arial, sans-serif; }
.map-sea { fill: #dcebf2; }
.map-caption { font-size: 12px; letter-spacing: 1px; fill: #6b6b6b; }
.map-sea-label { fill: #3f6b80; }
.dot circle { fill: var(--orange); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 1px var(--rust)); }
.dot text { font-size: 12px; font-weight: 600; fill: #2b2b2b; paint-order: stroke; stroke: rgba(255,255,255,0.85); stroke-width: 3px; }
.dot-soon circle { fill: #fff; stroke: var(--brown); stroke-dasharray: 3 2; filter: none; }
.map-key { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--text); }
.map-key > span { display: inline-flex; align-items: center; gap: 6px; }
.key-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--rust); }
.key-soon { background: #fff; border: 2px dashed var(--brown); box-shadow: none; }

.comuni-list { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; background: #fff; color: var(--ink); border: 2px solid #d6d2c4; }
.pill[aria-pressed="true"] { background: var(--olive); color: #fff; border-color: var(--olive); }
.tcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tcard-item { display: flex; }
.tcard, .tcard-soon { position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 44px 14px 16px; border-radius: 12px; }
.tcard { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(0,0,0,0.04); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tcard:hover { color: var(--ink); border-color: var(--orange); box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }
.tcard h3, .tcard-soon h3 { font-size: 18px; line-height: 1.3; }
.tcard-soon { background: #fbfaf6; border: 2px dashed #d9c9a8; }
.tcard-soon h3 { color: var(--text); }
.tcard-sub { font-size: 13px; line-height: 1.4; color: #5a5a5a; margin-top: -6px; }
.tcard-arrow { position: absolute; right: 14px; top: 16px; fill: none; stroke: var(--brown); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.badge-3d { background: #eef4e2; color: #3e5a1c; }
.badge-iso { background: #f3e6f3; color: #6a1c6b; }
.badge-cross { background: #e3eef3; color: #2d5566; }
.badge-restricted { background: #e9ece4; color: #3b4230; }
.badge-soon { background: #fdf1dc; color: var(--brown); }
.no-results { padding: 20px; background: #fff; border-radius: 12px; color: var(--text); }

/* For municipalities */
.cta-head { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.cta-head .sec-head { flex: 1 1 520px; min-width: 0; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #fff; border-radius: 14px; border-top: 6px solid var(--sun); }
.step-n { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--rust); }
.step h3 { font-size: 20px; }
.step p { color: var(--text); font-size: 16px; }
.sources { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 20px 24px; background: #fff; border-radius: 12px; font-size: 15px; color: var(--text); }
.sources strong { color: var(--ink); }

/* Contact */
.contact-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contact-text h2 { font-size: 36px; color: var(--sun); }
.contact-text p { color: #e6e8e0; }
.contact-list { flex: 1 1 360px; margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 16px; }
.contact-list dt { color: #c9cdbf; }
.contact-list dd { margin: 0; }
.contact-list a { color: #fff; }

/* Footer */
.footer { background: var(--ink); color: #c8c8c8; padding: 40px 24px; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--sun); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--paper); }

/* Phone layout (the canvas Phone.dc.html frame, 390 px wide). */
@media (max-width: 720px) {
    .nav { padding: 10px 16px; gap: 8px 16px; }
    .js .menu-btn { display: inline-flex; }
    .js .nav-links { display: none; }
    .js .nav-links.is-open { display: flex; flex-direction: column; width: 100%; gap: 0; border-top: 1px solid rgba(123,75,29,0.25); }
    .nav-links.is-open a { min-height: 48px; display: flex; align-items: center; padding: 0; border-bottom: 1px solid rgba(123,75,29,0.18); }
    .hero { padding: 32px 16px 80px; clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
    .hero .split { gap: 32px; }
    .hero h1 { font-size: 34px; }
    .sec-head h2, .contact-text h2, .video-text h2 { font-size: 28px; }
    .stats { padding: 0 16px; }
    .stat-num { font-size: 24px; }
    .sec { padding: 56px 16px; }
    .map { display: none; }
    .sizing-card { width: 84%; padding: 14px; font-size: 12px; gap: 8px; }
    .proposal-value { font-size: 16px; }
    .report-card { width: 62%; }
    .legend { font-size: 11px; padding: 8px 10px; }
}
