/* Reset di base (sostituisce il "preflight" di Tailwind usato dalla versione Next.js) */
*, ::before, ::after { margin: 0; padding: 0; border: 0 solid; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
ol, ul { list-style: none; }
img, svg, video, iframe { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { color: inherit; background-color: transparent; border-radius: 0; }
[hidden] { display: none !important; }
/* Immagini a tutto contenitore (equivalente di next/image "fill") */
img.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }


:root {
  --ink: #0b2430;
  --ink-soft: #24424d;
  --navy: #0b3142;
  --navy-deep: #071f2b;
  --aqua: #8fc3bd;
  --aqua-pale: #e8f1ed;
  --sand: #f5f0e7;
  --paper: #fbfaf6;
  --coral: #d95f46;
  --coral-dark: #bd4935;
  --line: #d9ded9;
  --white: #fff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { object-fit: cover; }

.page-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { margin: 0 0 18px; color: #47736e; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-light { color: #add5cf; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h2 { font-size: clamp(2.65rem, 5vw, 5.1rem); line-height: .98; }
p { line-height: 1.7; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 0; border-radius: 3px; font-size: .86rem; font-weight: 800; letter-spacing: .03em; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-coral { color: white; background: var(--coral); box-shadow: 0 12px 30px rgb(82 31 20 / 20%); }
.button-coral:hover { background: var(--coral-dark); }
.button-navy { color: white; background: var(--navy); }
.button-small { min-height: 40px; padding: 0 17px; font-size: .78rem; }
.button-light { color: var(--navy); background: white; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 800; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.text-link-light { color: white; border-color: rgb(255 255 255 / 55%); }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; color: white; border-bottom: 1px solid rgb(255 255 255 / 22%); }
.nav-inner { min-height: 82px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.brand > span:last-child { display: grid; }
.brand strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; line-height: 1.1; }
.brand small { margin-top: 2px; font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 27px; font-size: .78rem; font-weight: 650; }
.desktop-nav a, .nav-login { opacity: .84; transition: opacity .2s; }
.desktop-nav a:hover, .nav-login:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 22px; font-size: .78rem; font-weight: 700; }
.mobile-menu { display: none; margin-left: auto; position: relative; }
.mobile-menu summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; right: 0; top: 38px; width: 220px; display: grid; padding: 14px; background: white; color: var(--ink); box-shadow: 0 20px 50px rgb(0 0 0 / 18%); border-radius: 4px; }
.mobile-menu nav a { padding: 11px 10px; }

.hero { min-height: 780px; height: min(900px, 94vh); position: relative; display: flex; align-items: center; color: white; background: var(--navy-deep); }
.hero-image { object-position: center 56%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 24 33 / 88%) 0%, rgb(5 24 33 / 65%) 43%, rgb(5 24 33 / 10%) 76%), linear-gradient(0deg, rgb(6 31 43 / 25%), transparent 50%); }
.hero-content { position: relative; padding-top: 74px; }
.hero h1 { max-width: 1040px; font-size: clamp(4.1rem, 8vw, 7.8rem); line-height: .86; }
.hero-lead { max-width: 630px; margin: 34px 0 0; color: rgb(255 255 255 / 84%); font-size: 1.05rem; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 32px; }
.hero-note { position: absolute; left: 0; top: calc(100% + 78px); display: flex; gap: 10px; align-items: center; color: rgb(255 255 255 / 78%); font-size: .8rem; }

.intro-section { padding: 130px 0 76px; background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 110px; align-items: end; }
.intro-copy > p { max-width: 510px; margin: 0; font-family: var(--serif); font-size: 1.24rem; color: var(--ink-soft); }
.promise-list { display: grid; gap: 12px; margin-top: 28px; font-size: .85rem; font-weight: 700; }
.promise-list span { display: flex; align-items: center; gap: 10px; }
.promise-list svg { color: var(--coral); }
.services-section { padding: 0 0 125px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card { padding: 46px 48px 46px 0; }
.service-card + .service-card { border-left: 1px solid var(--line); padding-left: 48px; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--navy); background: var(--aqua-pale); border-radius: 50%; }
.service-card h3 { margin: 26px 0 12px; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.service-card p { margin: 0; color: #5e6d70; font-size: .91rem; }

.calculator-section { padding: 130px 0; color: white; background: var(--navy-deep); position: relative; overflow: hidden; }
.calculator-section::before { content: ""; position: absolute; width: 500px; height: 500px; left: -180px; bottom: -330px; border: 1px solid rgb(143 195 189 / 18%); border-radius: 50%; box-shadow: 0 0 0 80px rgb(143 195 189 / 3%), 0 0 0 160px rgb(143 195 189 / 2%); }
.calculator-layout { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: center; }
.calculator-copy > p:not(.eyebrow) { max-width: 460px; margin: 30px 0; color: rgb(255 255 255 / 67%); }
.calculator-facts { display: grid; gap: 14px; color: #b9d4d0; font-size: .84rem; }
.calculator-facts span { display: flex; align-items: center; gap: 10px; }
.calculator-card { padding: 38px; color: var(--ink); background: #fdfcf8; border-radius: 5px; box-shadow: 0 28px 80px rgb(0 0 0 / 30%); }
.field-group { margin-bottom: 21px; }
.field-label { display: block; margin-bottom: 9px; color: #46616a; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #e9eeeb; border-radius: 3px; }
.segmented button { min-height: 44px; color: #5c6e73; background: transparent; border: 0; border-radius: 2px; font-weight: 700; }
.segmented button.active { color: white; background: var(--navy); }
.number-input-wrap { display: flex; align-items: center; border: 1px solid #ced7d5; background: white; border-radius: 3px; }
.number-input-wrap input { width: 100%; min-height: 49px; padding: 0 15px; border: 0; background: transparent; outline: 0; font-weight: 750; }
.number-input-wrap span { padding: 0 15px; color: #647378; font-size: .82rem; border-left: 1px solid #e0e5e3; }
.field-group select { width: 100%; min-height: 51px; padding: 0 15px; color: var(--ink); border: 1px solid #ced7d5; background: white; border-radius: 3px; font-weight: 700; }
.inline-note { display: flex; align-items: flex-start; gap: 9px; margin: -4px 0 20px; padding: 12px 14px; color: #6c572b; background: #f6edda; font-size: .75rem; line-height: 1.45; }
.inline-note svg { flex: 0 0 auto; }
.price-result { display: grid; padding: 23px 0; border-top: 1px solid #d9dfdc; }
.price-result > span { color: #607176; font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.price-result strong { margin: 5px 0 2px; color: var(--navy); font-family: var(--serif); font-size: 3rem; font-weight: 500; }
.price-result small { color: #7a8587; font-size: .71rem; }
.calculator-submit { width: 100%; }
.calculator-disclaimer { margin: 12px auto 0; max-width: 430px; color: #7b8586; font-size: .69rem; line-height: 1.45; text-align: center; }
.inquiry-form { margin-top: 24px; padding-top: 25px; border-top: 1px solid #d9dfdc; }
.inquiry-heading { display: grid; gap: 5px; margin-bottom: 20px; }
.inquiry-heading span, .inquiry-summary > span { color: #607176; font-size: .69rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.inquiry-heading strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.inquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.inquiry-grid .field-group { margin-bottom: 17px; }
.inquiry-grid input { width: 100%; min-height: 49px; padding: 0 15px; color: var(--ink); border: 1px solid #ced7d5; background: white; border-radius: 3px; outline: 0; font-weight: 700; }
.inquiry-grid .number-input-wrap input { border: 0; }
.inquiry-wide { grid-column: 1 / -1; }
.inquiry-summary { display: grid; gap: 6px; margin: 3px 0 18px; padding: 17px 18px; background: var(--aqua-pale); border-left: 3px solid var(--aqua); }
.inquiry-summary strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.inquiry-summary p { margin: 0; color: #53686c; font-size: .76rem; line-height: 1.5; }
.inquiry-submit { width: 100%; }
.inquiry-note { margin: 10px auto 0; max-width: 460px; color: #7b8586; font-size: .67rem; line-height: 1.45; text-align: center; }

.location-section { padding: 125px 0; background: var(--paper); }
.location-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 90px; }
.location-photo { min-height: 580px; position: relative; }
.location-photo img { object-position: 48% center; }
.photo-label { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px; padding: 13px 17px; color: white; background: rgb(8 37 49 / 88%); backdrop-filter: blur(8px); font-size: .77rem; }
.location-copy > p:not(.eyebrow) { color: #53666c; margin: 24px 0; }
.location-copy .button { margin-top: 8px; }
.location-map { height: min(460px, 54vw); min-height: 360px; margin: 60px 0 0; position: relative; overflow: hidden; background: #dbe5e1; }
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-distance { position: absolute; left: 28px; bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 15px 19px; color: white; background: rgb(8 37 49 / 90%); backdrop-filter: blur(8px); }
.map-distance span { display: grid; gap: 2px; font-size: .82rem; }
.map-distance strong { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }

.gallery-section { padding: 125px 0; background: #e8f0eb; }
.section-heading-row { display: grid; grid-template-columns: 1fr 390px; gap: 80px; align-items: end; margin-bottom: 54px; }
.section-heading-row > p { margin: 0; color: #53686c; }
.photo-grid { display: grid; grid-template-columns: .8fr 1.2fr; grid-template-rows: 280px 280px; gap: 18px; }
.photo-grid figure { margin: 0; position: relative; overflow: hidden; }
.photo-grid img { transition: transform .6s; }
.photo-grid figure:hover img { transform: scale(1.025); }
.photo-tall { grid-row: 1 / span 2; }

.history-section { padding: 125px 0; background: var(--paper); }
.history-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 95px; }
.history-photo { position: relative; min-height: 570px; overflow: hidden; }
.history-photo img { object-position: center 48%; }
.history-copy > p:not(.eyebrow) { max-width: 570px; margin: 28px 0 0; color: #53666c; }
.history-copy em { color: var(--navy); }

.steps-section { padding: 130px 0; }
.steps-section h2 { max-width: 840px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border-top: 1px solid var(--line); }
.steps-grid article { position: relative; padding: 34px 34px 0 0; }
.steps-grid article + article { padding-left: 34px; border-left: 1px solid var(--line); }
.steps-grid span { color: var(--coral); font-family: var(--serif); font-size: 1.1rem; }
.steps-grid h3 { margin: 20px 0 10px; font-family: var(--serif); font-size: 1.32rem; font-weight: 500; }
.steps-grid p { margin: 0; color: #637277; font-size: .83rem; }
.final-cta { padding: 95px 0; color: white; background: var(--coral); }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.final-cta .eyebrow-light { color: #ffd7cf; }
.final-cta h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); }

.site-footer { padding: 75px 0 24px; color: rgb(255 255 255 / 68%); background: var(--navy-deep); font-size: .78rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 70px; padding-bottom: 60px; }
.brand-footer { color: white; margin-bottom: 18px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-grid > div:first-child { display: block; }
.footer-grid p { max-width: 270px; }
.footer-grid strong { color: white; margin-bottom: 6px; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .68rem; }

/* Internal pages and authentication */
.inner-page { min-height: 100vh; background: var(--sand); }
.inner-page .site-header { position: relative; color: var(--navy); background: var(--paper); border-bottom-color: var(--line); }
.access-hero { position: relative; overflow: hidden; padding: 100px 0 92px; color: white; background: radial-gradient(circle at 82% 18%, rgb(92 154 153 / 24%), transparent 32%), var(--navy-deep); }
.access-hero::after { content: ""; position: absolute; width: 460px; height: 460px; right: -170px; bottom: -330px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; box-shadow: 0 0 0 72px rgb(255 255 255 / 2.5%), 0 0 0 144px rgb(255 255 255 / 1.5%); }
.access-hero-inner { position: relative; z-index: 1; }
.access-hero h1 { max-width: 1050px; font-size: clamp(4rem, 7.5vw, 7rem); line-height: .88; }
.access-lead { max-width: 710px; margin: 32px 0 0; color: rgb(255 255 255 / 74%); font-size: 1.04rem; }
.access-content { padding: 105px 0 130px; }
.access-map-layout { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 80px; }
.access-map-copy > p:not(.eyebrow) { margin: 28px 0; color: #5d6d70; }
.access-map { height: 430px; min-height: 430px; margin: 0; }
.distance-card { display: flex; align-items: center; gap: 14px; max-width: 430px; padding: 19px 21px; color: #466067; background: white; border: 1px solid var(--line); }
.distance-card svg { flex: 0 0 auto; color: var(--coral); }
.distance-card span { display: grid; gap: 2px; font-size: .78rem; }
.distance-card strong { color: var(--navy); font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.routes-section { margin-top: 110px; }
.access-intro { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 90px; margin-bottom: 60px; }
.access-intro h2 { max-width: 720px; }
.access-intro > p { margin: 0 0 8px; color: #5d6d70; }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.access-card { min-height: 330px; padding: 42px; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); }
.route-icon { width: 52px; height: 52px; margin-bottom: 34px; display: grid; place-items: center; color: var(--navy); background: var(--aqua-pale); border-radius: 50%; }
.access-card .route-tag { color: var(--coral); font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }
.access-card h2 { margin: 12px 0 20px; font-size: 2.7rem; }
.access-card > p { color: #5d6d70; }
.bridge-story { display: grid; grid-template-columns: .76fr 1.24fr; margin-top: 80px; background: white; }
.bridge-photo { position: relative; min-height: 610px; overflow: hidden; background: #dbe5e1; }
.bridge-image { object-fit: cover; object-position: center 46%; }
.bridge-copy { padding: 70px clamp(42px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.bridge-copy h2 { max-width: 650px; }
.bridge-copy > p:not(.eyebrow) { margin: 28px 0; color: #5d6d70; }
.route-note { padding: 18px 20px; background: var(--sand); font-size: .78rem; line-height: 1.6; }
.arrival-cta { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; margin-top: 32px; padding: 58px 64px; color: white; background: var(--navy); }
.arrival-cta h2 { margin-bottom: 0; font-size: clamp(2.6rem, 4.4vw, 4.6rem); }
.arrival-cta > div:last-child { display: grid; justify-items: start; gap: 22px; }
.arrival-cta p:not(.eyebrow) { margin: 0; color: rgb(255 255 255 / 72%); }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--paper); }
.auth-visual { position: relative; min-height: 100vh; color: white; padding: 52px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(5 27 37 / 84%), rgb(5 27 37 / 15%)); }
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual .brand { align-self: flex-start; }
.auth-visual-copy h1 { max-width: 640px; font-size: clamp(3.5rem, 6vw, 6.5rem); line-height: .87; }
.auth-visual-copy p { max-width: 500px; color: rgb(255 255 255 / 78%); }
.auth-panel { padding: 60px clamp(32px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.auth-back { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 60px; font-size: .8rem; font-weight: 700; }
.auth-panel h2 { font-size: 3.6rem; }
.auth-panel > p { color: #607176; }
.auth-form { margin-top: 30px; }
.auth-form label { display: block; margin-bottom: 8px; color: #40565d; font-size: .76rem; font-weight: 800; }
.auth-form input { width: 100%; min-height: 54px; padding: 0 16px; color: var(--ink); background: white; border: 1px solid #cbd5d2; border-radius: 3px; outline: none; }
.auth-form input:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgb(143 195 189 / 25%); }
.auth-form .button { width: 100%; margin-top: 14px; }
.auth-form .button-google { margin: 0 0 22px; background: white; color: var(--ink); border: 1px solid #cbd5d2; justify-content: center; }
.auth-form .button-google span { display: inline-grid; width: 23px; height: 23px; place-items: center; border: 1px solid #d5dcda; border-radius: 50%; font-weight: 800; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: #839093; font-size: .7rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #d8dfdd; }
.auth-help { margin-top: 16px; color: #768386; font-size: .72rem; }
.auth-status { margin-top: 18px; padding: 13px 15px; background: var(--aqua-pale); color: #315c58; font-size: .78rem; line-height: 1.5; }
.quote-recap { margin-bottom: 28px; padding: 18px; background: var(--sand); border-left: 3px solid var(--coral); }
.quote-recap span { display: block; color: #667477; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.quote-recap strong { display: block; margin-top: 5px; font-family: var(--serif); font-size: 1.25rem; }

/* Dashboards */
.dashboard { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: #f3f5f2; }
.dashboard-sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; color: white; background: var(--navy-deep); }
.dashboard-sidebar .brand { margin: 0 8px 40px; }
.dashboard-nav { display: grid; gap: 6px; }
.dashboard-nav a { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 0 13px; color: rgb(255 255 255 / 67%); border-radius: 4px; font-size: .8rem; font-weight: 650; }
.dashboard-nav a.active, .dashboard-nav a:hover { color: white; background: rgb(255 255 255 / 9%); }
.dashboard-sidebar-footer { position: absolute; bottom: 28px; left: 28px; right: 28px; color: rgb(255 255 255 / 52%); font-size: .69rem; }
.dashboard-main { min-width: 0; }
.dashboard-topbar { min-height: 80px; padding: 0 44px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); }
.dashboard-topbar > div:first-child span { display: block; color: #718084; font-size: .69rem; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-topbar strong { font-family: var(--serif); font-size: 1.3rem; }
.user-pill { display: flex; align-items: center; gap: 10px; }
.user-pill > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; color: white; background: var(--coral); border-radius: 50%; font-size: .75rem; font-weight: 800; }
.user-pill small { display: block; color: #768386; font-size: .67rem; }
.dashboard-content { padding: 40px 44px 70px; }
.demo-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 24px; color: #5e4b1c; background: #f8eccc; border: 1px solid #eed9a3; font-size: .76rem; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.dashboard-heading h1 { font-size: 3.3rem; }
.dashboard-heading p { margin: 4px 0 0; color: #6c797c; font-size: .84rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.metric-card, .panel { background: white; border: 1px solid #e0e4e1; border-radius: 5px; box-shadow: 0 8px 28px rgb(22 50 56 / 4%); }
.metric-card { grid-column: span 3; padding: 22px; }
.metric-card > span { color: #718084; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.metric-card strong { display: block; margin: 8px 0 4px; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.metric-card small { color: #7d898b; font-size: .68rem; }
.panel { grid-column: span 6; padding: 26px; }
.panel-wide { grid-column: span 8; }
.panel-narrow { grid-column: span 4; }
.panel-full { grid-column: 1 / -1; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-title h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.panel-title a { color: var(--coral); font-size: .72rem; font-weight: 800; }
.progress-track { height: 7px; margin: 14px 0 9px; overflow: hidden; background: #e6eae7; border-radius: 999px; }
.progress-track span { display: block; height: 100%; background: var(--aqua); border-radius: inherit; }
.checklist { display: grid; gap: 13px; }
.checklist-item { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid #edf0ee; font-size: .79rem; }
.checklist-item:last-child { border: 0; padding-bottom: 0; }
.status { padding: 5px 8px; border-radius: 999px; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.status-ok { color: #246654; background: #dcefe7; }
.status-warn { color: #7a5718; background: #f7eac8; }
.status-danger { color: #8b3c2f; background: #f7ded9; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.data-table th { padding: 10px; color: #718084; text-align: left; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #e1e5e2; }
.data-table td { padding: 14px 10px; border-bottom: 1px solid #edf0ee; }
.data-table tr:last-child td { border-bottom: 0; }
.profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-form label { display: grid; gap: 7px; color: #53666c; font-size: .72rem; font-weight: 700; }
.profile-form input, .profile-form select, .profile-form textarea { min-height: 46px; padding: 11px 13px; border: 1px solid #d2dad7; background: white; border-radius: 3px; }
.profile-form .full { grid-column: 1 / -1; }
.profile-form textarea { min-height: 100px; resize: vertical; }
.panel-hint { color: #7a8789; font-size: .7rem; }
.admin-alert { margin-bottom: 22px; padding: 13px 16px; border: 1px solid; font-size: .78rem; font-weight: 700; }
.admin-alert-success { color: #246654; background: #e1f1ea; border-color: #bcdccb; }
.admin-alert-error { color: #8b3c2f; background: #fae8e4; border-color: #edc3bb; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: 0; border-color: var(--aqua); box-shadow: 0 0 0 3px rgb(143 195 189 / 20%); }
.form-actions { display: flex; align-items: center; gap: 18px; }
.text-link { color: var(--coral); font-size: .75rem; font-weight: 800; }
.form-explanation { margin: 0; color: #6d7a7d; font-size: .76rem; line-height: 1.7; }
.checkbox-label { display: flex !important; align-items: center; align-self: end; min-height: 46px; gap: 10px !important; }
.checkbox-label input { width: 17px; min-height: 17px; }
.empty-state { display: grid; justify-items: start; gap: 6px; padding: 28px; color: #657477; background: #f6f8f6; border: 1px dashed #ced8d4; }
.empty-state strong { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }
.empty-state span { font-size: .76rem; }
.empty-state .button { margin-top: 12px; }
.record-list { display: grid; gap: 12px; }
.admin-record { background: #fbfcfb; border: 1px solid #e1e6e3; border-radius: 4px; }
.admin-record[open] { background: white; border-color: #cbd6d2; box-shadow: 0 10px 26px rgb(22 50 56 / 5%); }
.admin-record summary { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 1fr) auto auto auto; align-items: center; gap: 20px; padding: 18px 20px; list-style: none; }
.admin-record summary::-webkit-details-marker { display: none; }
.record-main, .record-contact, .record-balance, .record-amount { display: grid; gap: 4px; }
.record-main strong, .record-contact strong, .record-balance strong { font-size: .79rem; }
.record-main small, .record-contact small, .record-balance small, .record-amount small { color: #7a8789; font-size: .67rem; }
.record-balance { text-align: right; }
.record-edit-label { color: var(--coral); font-size: .68rem; font-weight: 800; }
.record-form { padding: 24px 20px; border-top: 1px solid #e6ebe8; }
.contract-progress { padding: 0 20px 6px; }
.contract-progress > div:first-child { display: flex; justify-content: space-between; color: #667679; font-size: .68rem; }
.payment-balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.balance-card { display: grid; gap: 16px; padding: 19px; background: #f8faf8; border: 1px solid #e1e6e3; }
.balance-card > div:first-child { display: grid; gap: 4px; }
.balance-card > div:first-child strong { font-size: .82rem; }
.balance-card small { color: #758285; font-size: .67rem; }
.balance-card .status { justify-self: start; }
.balance-card dl { display: grid; gap: 7px; margin: 0; }
.balance-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .7rem; }
.balance-card dt { color: #718084; }
.balance-card dd { margin: 0; font-weight: 800; }
.balance-card > a { color: var(--coral); font-size: .7rem; font-weight: 800; }
.quick-links { display: grid; gap: 9px; }
.quick-links a { display: flex; align-items: center; gap: 12px; padding: 12px; color: var(--ink); background: #f7f9f7; border: 1px solid #e4e9e6; }
.quick-links a span { color: var(--coral); font-size: .64rem; font-weight: 800; }
.quick-links a strong { font-size: .75rem; }
.record-amount { text-align: right; }
.table-action { padding: 7px 9px; color: var(--navy); background: #eef3f1; border: 0; border-radius: 3px; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.table-action:hover { color: white; background: var(--navy); }
.role-form { display: flex; align-items: center; gap: 8px; }
.role-form select { min-height: 36px; padding: 7px 9px; border: 1px solid #d2dad7; background: white; }
.customer-contract-summary { display: grid; gap: 22px; }
.customer-contract-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.customer-contract-summary dl div { display: grid; gap: 4px; padding: 14px; background: #f7f9f7; border: 1px solid #e4e9e6; }
.customer-contract-summary dt { color: #748285; font-size: .67rem; }
.customer-contract-summary dd { margin: 0; color: var(--ink); font-size: .8rem; font-weight: 800; }
.customer-boat { display: grid; gap: 5px; margin: 18px 0 24px; }
.customer-boat strong { font-family: var(--serif); font-size: 1.45rem; }
.customer-boat span { color: #718084; font-size: .75rem; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .nav-actions { margin-left: auto; }
  .intro-grid, .calculator-layout, .location-grid, .history-grid, .access-map-layout { gap: 60px; }
  .metric-card { grid-column: span 6; }
  .panel, .panel-wide, .panel-narrow { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .page-shell { width: min(100% - 32px, 1180px); }
  .nav-inner { min-height: 70px; }
  .nav-actions { display: none; }
  .mobile-menu { display: block; }
  .hero { min-height: 720px; height: 92svh; }
  .hero h1 { font-size: clamp(3.9rem, 18vw, 6.2rem); }
  .hero-note { top: calc(100% + 48px); }
  .intro-grid, .calculator-layout, .location-grid, .section-heading-row, .history-grid, .access-map-layout { grid-template-columns: 1fr; gap: 45px; }
  .intro-section, .calculator-section, .location-section, .gallery-section, .history-section, .steps-section { padding: 95px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card + .service-card { padding: 32px 0; border-left: 0; border-top: 1px solid var(--line); }
  .service-card:first-child { border-top: 0; }
  .location-photo { min-height: 480px; }
  .location-map { height: 52vw; min-height: 360px; margin-top: 64px; }
  .access-map { height: 430px; min-height: 430px; margin-top: 0; }
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 330px); }
  .photo-tall { grid-row: auto; }
  .history-photo { min-height: 500px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid article:nth-child(3) { border-left: 0; padding-left: 0; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: 430px; padding: 32px; }
  .auth-panel { padding: 55px 32px 80px; }
  .auth-back { margin-bottom: 40px; }
  .access-intro, .bridge-story, .arrival-cta { grid-template-columns: 1fr; }
  .access-intro { gap: 28px; }
  .access-grid { grid-template-columns: 1fr; }
  .bridge-photo { min-height: 650px; }
  .arrival-cta { gap: 34px; }
  .dashboard { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: relative; height: auto; padding: 18px 16px; }
  .dashboard-sidebar .brand { margin: 0; }
  .dashboard-nav { margin-top: 18px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(145px, 1fr); overflow-x: auto; }
  .dashboard-sidebar-footer { display: none; }
  .dashboard-topbar, .dashboard-content { padding-left: 22px; padding-right: 22px; }
  .payment-balance-grid { grid-template-columns: 1fr 1fr; }
  .admin-record summary { grid-template-columns: minmax(190px, 1fr) auto auto; }
  .record-contact { display: none; }
}

@media (max-width: 560px) {
  h2 { font-size: 2.65rem; }
  .brand strong { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-lead { font-size: .95rem; }
  .calculator-card { padding: 24px 18px; }
  .inquiry-grid { grid-template-columns: 1fr; }
  .inquiry-wide { grid-column: auto; }
  .location-photo { min-height: 380px; }
  .location-map { height: 76vw; min-height: 300px; margin-top: 48px; }
  .access-map { height: 360px; min-height: 360px; margin-top: 0; }
  .map-distance { left: 14px; right: 14px; bottom: 14px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article, .steps-grid article + article { padding: 25px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .access-hero { padding: 75px 0; }
  .access-content { padding: 80px 0 95px; }
  .routes-section { margin-top: 80px; }
  .access-card { min-height: 0; padding: 32px 26px; }
  .bridge-story { margin-top: 70px; }
  .bridge-photo { min-height: 540px; }
  .bridge-copy { padding: 46px 26px; }
  .arrival-cta { padding: 40px 26px; }
  .history-photo { min-height: 390px; }
  .auth-visual { min-height: 360px; }
  .auth-visual-copy h1 { font-size: 3.6rem; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .metric-card { grid-column: 1 / -1; }
  .profile-form { grid-template-columns: 1fr; }
  .profile-form .full { grid-column: auto; }
  .user-pill div { display: none; }
  .payment-balance-grid { grid-template-columns: 1fr; }
  .admin-record summary { grid-template-columns: 1fr auto; gap: 12px; }
  .admin-record summary .status { justify-self: start; }
  .record-balance { display: none; }
  .record-edit-label { grid-column: 2; grid-row: 1; }
  .form-actions { align-items: flex-start; flex-direction: column; }
}

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

/* Selettore lingua (aggiunto per la versione multilingua) */
.lang-switch { display: flex; align-items: center; gap: 9px; font-size: .7rem; font-weight: 800; letter-spacing: .05em; }
.lang-switch a, .lang-switch .current { opacity: .55; transition: opacity .2s; }
.lang-switch a:hover { opacity: 1; }
.lang-switch .current { opacity: 1; text-decoration: underline; text-underline-offset: 3px; cursor: default; }
.nav-actions .lang-switch { padding-right: 4px; border-right: 1px solid rgb(255 255 255 / 30%); }
.inner-page .nav-actions .lang-switch { border-right-color: var(--line); }
.mobile-menu > nav > .lang-switch { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); gap: 8px 14px; flex-wrap: wrap; }
.nf-stack { display: grid; gap: 56px; }
.nf-block:not(:last-child) { padding-bottom: 40px; border-bottom: 1px solid rgb(255 255 255 / 18%); }
.save-hint { display: flex; align-items: center; gap: 8px; margin: -6px 0 0; padding: 11px 14px; color: #2f5e3a; background: #e9f3ea; border-radius: 4px; font-size: .78rem; font-weight: 650; }
.save-hint svg { flex: 0 0 auto; }
.save-hint-text-amount, .save-hint strong { color: #1f4a29; }
.save-hint-footnote { margin: 6px 0 0; color: #7a8587; font-size: .68rem; line-height: 1.4; }
@media (max-width: 1050px) {
  .nav-actions .lang-switch span, .nav-actions .lang-switch a { font-size: .66rem; }
}
