/* GeoAste - foglio di stile (estratto e normalizzato da test.html) */
:root {
    --navy: #0b2233;
    --ink: #10293b;
    --orange: #ed8129;
    --paper: #faf9f6;
    --line: #deded7;
    --muted: #55606a;
    --orange-text: #9a4300
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: var(--paper);
    font-size: 16px;
    line-height: 1.5
}

button,
input,
select {
    font: inherit
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer
}

a {
    color: inherit
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 3px
}

header :focus-visible,
.intro :focus-visible,
.hero :focus-visible,
.footer :focus-visible,
.modal-head :focus-visible {
    outline-color: var(--orange)
}

h1,
h2,
h3,
.serif {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.1
}

h1 {
    font-size: clamp(3rem, 6vw, 5.6rem);
    margin: 20px 0
}

h2 {
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    margin: 0 0 16px
}

h3 {
    font-size: 1.8rem;
    margin: 0
}

.eyebrow {
    font-size: 14px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600
}

.btn {
    border: 0;
    border-radius: 3px;
    padding: 15px 24px;
    background: var(--orange);
    color: var(--navy);
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background .2s, transform .2s
}

.btn:hover {
    background: #ffa554;
    transform: translateY(-2px)
}

.btn.dark {
    background: var(--navy);
    color: white
}

.btn.ghost {
    background: transparent;
    border: 1px solid #ffffff55;
    color: white
}

.muted {
    color: var(--muted)
}

.shell {
    max-width: 1230px;
    padding: 0 34px;
    margin: auto
}

.intro {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--navy);
    color: white;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    transition: opacity .6s, visibility .6s
}

.intro.closed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.intro-content {
    padding: 8vh 8vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative
}

.intro img.brand {
    width: min(340px, 100%);
    margin-bottom: 50px
}

.intro .intro-title {
    margin: 20px 0;
    line-height: 1.1;
    font-size: clamp(3rem, 5.5vw, 5.3rem);
    max-width: 600px
}

.intro p {
    color: #c7d1d7;
    max-width: 380px;
    font-size: 18px;
    margin: 12px 0 30px
}

.intro-photo {
    background: linear-gradient(90deg, var(--navy), transparent 45%), url('../img/toscana.png') center/cover;
    position: relative
}

.intro-photo:after {
    content: 'GEOASTE / TOSCANA';
    position: absolute;
    bottom: 40px;
    right: 30px;
    font-size: 12px;
    letter-spacing: 3px
}

.intro-bottom {
    position: absolute;
    bottom: 30px;
    left: 8vw;
    color: #c7d1d7;
    font-size: 14px
}

.intro small {
    font-size: 13px;
    color: #a7b6c0;
    margin-top: 18px
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--navy);
    color: white;
    border-bottom: 1px solid #ffffff17
}

.nav {
    height: 88px;
    display: flex;
    align-items: center;
    gap: 28px
}

.brand {
    width: 230px;
    display: block
}

.nav nav {
    display: flex;
    gap: 26px;
    margin-left: auto
}

.nav nav a {
    text-decoration: none;
    font-size: 14px;
    color: #d7dee2
}

.nav .contact {
    font-size: 14px;
    color: var(--orange);
    text-decoration: none
}

.hero {
    background: var(--navy);
    color: white;
    position: relative;
    overflow: hidden
}

.hero .shell {
    padding-top: 64px;
    padding-bottom: 64px;
    position: relative;
    z-index: 1
}

.hero p {
    max-width: 520px;
    font-size: 19px;
    color: #ccd6dc
}

.hero-image {
    position: absolute;
    width: 40%;
    right: 0;
    inset-block: 0;
    background: linear-gradient(90deg, var(--navy), transparent), url('../img/toscana.png') center/cover;
    opacity: .75
}

.hero h1 {
    max-width: 800px
}

.hero .eyebrow {
    color: var(--orange)
}

section {
    padding: 72px 0
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-end;
    margin-bottom: 36px
}

.section-head p {
    max-width: 580px;
    margin: 0;
    color: var(--muted)
}

.index {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--muted)
}

.packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.package {
    background: #f0efea;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: relative
}

.package.featured {
    background: white;
    border: 1px solid var(--orange)
}

.ribbon {
    position: absolute;
    top: -14px;
    right: 20px;
    padding: 5px 13px;
    background: var(--orange);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px
}

.package-top {
    padding: 30px 28px 20px
}

.package .n {
    color: var(--orange-text);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 18px
}

.price {
    font-family: Georgia, serif;
    font-size: 3.3rem;
    line-height: 1.1;
    display: block;
    margin: 18px 0;
    color: var(--ink)
}

.price small {
    font-family: Arial;
    font-size: 14px;
    color: var(--muted)
}

.package p {
    min-height: 96px;
    color: var(--muted);
    font-size: 16px
}

.package ul {
    list-style: none;
    padding: 20px 0 0;
    margin: 0;
    border-top: 1px solid #d4d6d4;
    min-height: 172px
}

.package li {
    margin: 9px 0;
    display: flex;
    gap: 10px
}

.package li:before {
    content: '✓';
    color: var(--orange);
    font-weight: bold
}

.package-bottom {
    padding: 22px 28px;
    margin-top: auto;
    background: var(--navy);
    color: white
}

.package-bottom .btn {
    width: 100%
}

.package-bottom small {
    display: block;
    font-size: 13px;
    margin-bottom: 13px;
    color: #c3cdd3
}

.services {
    background: white;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0
}

.service {
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column
}

.service:nth-child(3n) {
    border-right: 0
}

.service:nth-child(n+4) {
    border-bottom: 0
}

.service-icon {
    font-size: 14px;
    color: var(--orange-text);
    margin-bottom: 20px;
    letter-spacing: 2px
}

.service h3 {
    font-size: 1.6rem
}

.service p {
    color: var(--muted);
    flex: 1;
    min-height: 76px
}

.service-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px
}

.service-price {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    white-space: nowrap
}

.service button {
    border: 1px solid var(--line);
    background: transparent;
    padding: 10px 17px;
    font-size: 14px;
    font-weight: bold
}

.service button:hover {
    border-color: var(--orange);
    color: var(--orange-text)
}

.note {
    font-size: 14px;
    color: var(--muted);
    margin-top: 26px
}

.fees {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px
}

.fees p {
    color: var(--muted)
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 16px
}

th {
    text-align: left;
    background: var(--navy);
    color: white;
    padding: 16px;
    font-size: 14px;
    font-weight: 400
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--line)
}

td:last-child {
    font-weight: bold;
    text-align: right
}

.example {
    background: #eeeae3;
    padding: 18px 22px;
    margin-top: 22px;
    font-size: 15px
}

.footer {
    background: var(--navy);
    color: #c8d3d9;
    padding: 40px 0
}

.footer .shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px
}

.footer-links {
    display: flex;
    gap: 30px
}

.footer a {
    text-decoration: none
}

.footer small {
    font-size: 13px
}

.legal-bar {
    border-top: 1px solid #ffffff22;
    padding-top: 20px;
    margin-top: 25px
}

.legal-bar button,
.legal-bar a {
    color: #c8d3d9;
    background: none;
    border: 0;
    text-decoration: underline;
    font-size: 14px
}

dialog {
    border: 0;
    padding: 0;
    border-radius: 8px;
    max-width: 740px;
    width: calc(100% - 28px);
    color: var(--ink);
    max-height: 90dvh;
    box-shadow: 0 25px 90px #0005
}

dialog::backdrop {
    background: #061622bc;
    backdrop-filter: blur(5px)
}

.modal-head {
    padding: 24px 30px;
    background: var(--navy);
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 20px
}

.modal-head h2 {
    font-size: 1.9rem;
    margin: 0
}

.close {
    background: transparent;
    border: 0;
    color: white;
    font-size: 26px;
    line-height: 1
}

.modal-body {
    padding: 28px 30px
}

.steps {
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 22px
}

.summary {
    display: flex;
    justify-content: space-between;
    background: #f1efe9;
    padding: 18px;
    margin-bottom: 24px;
    align-items: center
}

.summary strong {
    font-family: Georgia, serif;
    font-size: 1.8rem
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600
}

label span {
    display: block;
    margin-bottom: 6px
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cdd3d5;
    border-radius: 3px;
    background: white;
    color: var(--ink)
}



.full {
    grid-column: 1/-1
}

.check {
    display: flex;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    align-items: flex-start
}

.check input {
    width: 18px;
    height: 18px;
    flex: none
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    align-items: center
}

.back {
    border: 0;
    background: transparent;
    text-decoration: underline;
    color: var(--muted)
}

.alert {
    padding: 14px;
    background: #fff0dc;
    border-left: 3px solid var(--orange);
    font-size: 14px;
    margin: 18px 0
}

.error {
    color: #ae2424;
    font-size: 14px
}

dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    margin-bottom: 26px;
    font-size: 15px
}

dt {
    color: var(--muted)
}

dd {
    margin: 0;
    overflow-wrap: anywhere
}

.hidden {
    display: none !important
}

body.lock {
    overflow: hidden
}

@media(max-width:800px) {
    .shell {
        padding: 0 22px
    }

    .nav {
        height: 75px;
        gap: 15px
    }

    .brand {
        width: 190px
    }

    .nav nav {
        gap: 15px
    }

    .nav .contact {
        display: none
    }

    .hero .shell {
        padding-top: 45px;
        padding-bottom: 45px
    }

    .hero-image {
        width: 60%;
        opacity: .3
    }

    .packages {
        grid-template-columns: 1fr
    }

    .package p,
    .package ul {
        min-height: 0
    }

    .package-top {
        padding: 26px
    }

    .package ul {
        padding-bottom: 8px
    }

    .package .price {
        font-size: 2.9rem
    }

    .services-grid {
        grid-template-columns: 1fr 1fr
    }

    .service {
        padding: 22px
    }

    .service:nth-child(3n) {
        border-right: 1px solid var(--line)
    }

    .service:nth-child(2n) {
        border-right: 0
    }

    .service:nth-child(n+4) {
        border-bottom: 1px solid var(--line)
    }

    .service:nth-child(n+5) {
        border-bottom: 0
    }

    .service-bottom {
        align-items: flex-start;
        flex-direction: column
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px
    }

    section {
        padding: 48px 0
    }

    .fees {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .footer .shell {
        flex-direction: column;
        align-items: flex-start
    }

    .footer-links {
        flex-direction: column;
        gap: 12px
    }

    .intro {
        grid-template-columns: 1fr
    }

    .intro-content {
        padding: 70px 30px;
        z-index: 2
    }

    .intro img.brand {
        width: 280px;
        margin-bottom: 28px
    }

    .intro .intro-title {
        font-size: 3.4rem
    }

    .intro-photo {
        position: absolute;
        inset: 0;
        opacity: .2;
        background: linear-gradient(0deg, var(--navy), transparent), url('../img/toscana.png') center/cover
    }

    .intro-bottom {
        left: 30px;
        font-size: 12px
    }

    .intro-photo:after {
        display: none
    }
}

@media(max-width:480px) {
    .nav nav a {
        font-size: 13px
    }

    .nav nav a:nth-child(3) {
        display: none
    }

    .brand {
        width: 170px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .full {
        grid-column: auto
    }

    .modal-head,
    .modal-body {
        padding: 22px
    }

    .service h3 {
        font-size: 1.4rem
    }

    .service-price {
        font-size: 1.6rem
    }

    .service p {
        font-size: 15px
    }

    .service {
        padding: 22px 16px
    }

    dl {
        grid-template-columns: 1fr;
        gap: 4px
    }

    dd {
        margin-bottom: 12px
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column
    }

    h1 {
        font-size: 3.2rem
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important
    }
}

/* ===== Estensioni ===== */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    background: var(--orange);
    color: var(--navy);
    padding: 10px 16px;
    font-weight: 700
}

.skip-link:focus {
    top: 12px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0
}

/* L'intro e' un potenziamento: senza JavaScript non deve bloccare il sito */
.intro {
    display: none
}

.js .intro {
    display: grid
}

.js .intro.closed {
    display: grid
}

.required-mark {
    color: #ae2424
}

.field-error {
    display: block;
    min-height: 0;
    margin-top: 4px;
    color: #ae2424;
    font-size: 13px;
    font-weight: 400
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #ae2424;
    box-shadow: inset 3px 0 0 #ae2424
}

/* honeypot anti-spam: fuori schermo, non display:none (alcuni bot lo ignorano) */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

textarea {
    font: inherit;
    resize: vertical;
    min-height: 120px
}

::placeholder {
    color: #6b757d;
    opacity: 1
}

.package-bottom small,
.package p {
    max-width: 60ch
}

.contact-section {
    background: white;
    border-top: 1px solid var(--line)
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px
}

.contact-grid p {
    color: var(--muted)
}

.contact-form {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 28px
}

.status {
    margin-top: 18px;
    padding: 14px;
    border-left: 3px solid var(--navy);
    background: #eaf1f6;
    font-size: 15px
}

.status.is-error {
    border-left-color: #ae2424;
    background: #fdecec;
    color: #7d1818
}

.status:empty {
    display: none
}

.btn[disabled] {
    opacity: .6;
    cursor: progress;
    transform: none
}

.legal-page {
    max-width: 820px;
    margin: auto;
    padding: 56px 34px 80px
}

.legal-page h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem)
}

.legal-page h2 {
    font-size: 1.7rem;
    margin-top: 40px
}

.legal-page li {
    margin: 6px 0
}

/* Modulo di recesso tipo nelle condizioni di vendita */
.legal-page blockquote {
    margin: 16px 0;
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--muted);
    border-radius: 8px
}

.legal-page blockquote p {
    margin: 6px 0
}

.legal-page table td:last-child {
    text-align: left;
    font-weight: 400
}

@media(max-width:800px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px
    }
}

@media(forced-colors:active) {

    .btn,
    button {
        border: 1px solid ButtonText
    }
}

.accent {
    color: var(--orange)
}

.upper {
    text-transform: uppercase
}

.upper::placeholder {
    text-transform: none
}

.note-inline {
    font-size: 13px
}

#page-status:not(:empty) {
    margin: 0
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    list-style: none;
    padding: 0
}

.steps [aria-current="step"] {
    color: var(--ink);
    font-weight: 700
}

#result:focus {
    outline: none
}

.intro[hidden] {
    display: none !important
}

body.lock {
    overflow: hidden
}

img.brand {
    height: auto
}

@media(max-width:480px) {
    .nav {
        gap: 10px
    }

    .nav nav {
        gap: 12px
    }

    .nav .brand {
        width: 120px
    }

    .shell {
        padding: 0 16px
    }
}

/* ===== Consenso cookie ===== */
.consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 300;
    max-height: 80dvh;
    overflow: auto;
    background: var(--navy);
    color: white;
    border-top: 3px solid var(--orange);
    box-shadow: 0 -10px 40px #0007
}

.consent-inner {
    max-width: 1230px;
    margin: auto;
    padding: 22px 34px;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap
}

.consent-title {
    font-size: 1.35rem;
    margin: 0 0 6px
}

.consent p {
    margin: 0;
    max-width: 72ch;
    font-size: 15px;
    color: #dbe3e8
}

.consent a {
    color: white
}

.consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

/* Accetta e Rifiuta: identici per aspetto e dimensione (nessun dark pattern) */
.consent-btn {
    min-width: 132px;
    border: 2px solid white;
    border-radius: 3px;
    padding: 12px 20px;
    background: white;
    color: var(--navy);
    font-weight: 700
}

.consent-btn.secondary {
    background: transparent;
    color: white
}

.consent-btn.dark {
    background: var(--navy);
    border-color: var(--navy);
    color: white
}

.consent-close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 28px;
    line-height: 1;
    padding: 6px 10px
}

.consent :focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px
}

.consent-fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 8px
}

.consent-cat {
    padding: 14px 0;
    border-bottom: 1px solid var(--line)
}

.consent-cat p {
    margin: 6px 0 0 28px;
    font-size: 14px
}

#consent-dialog .consent-actions {
    margin-top: 18px
}

/* ===== Footer legale e segnaposto ===== */
.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px
}

.legal-links a,
.link-button {
    color: #c8d3d9;
    background: none;
    border: 0;
    padding: 0;
    font-size: 14px;
    text-decoration: underline
}

.company-line {
    padding-top: 14px
}

.company-line small {
    line-height: 1.7
}

.todo {
    background: #ffe9a8;
    color: #5a3b00;
    padding: 0 3px;
    border-radius: 2px
}

.legal-page .todo,
.modal-body .todo {
    outline: 1px dashed #b07a00
}

@media(max-width:800px) {
    .consent-inner {
        padding: 22px 16px 16px
    }

    .consent-actions {
        width: 100%
    }

    .consent-btn {
        flex: 1 1 140px
    }

    .legal-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px
    }
}

@media(forced-colors:active) {

    .consent,
    .consent-btn {
        border: 2px solid CanvasText
    }
}

/* Rilievo 3D nell'intro (assets/js/terrain.js). Senza JS o canvas resta la foto. */
.terrain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1.2s ease;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
    mask-image: linear-gradient(90deg, transparent, #000 35%)
}

.terrain.ready {
    opacity: 1
}

.intro-photo:has(.terrain.ready) {
    background: var(--navy)
}

@media(max-width:800px) {
    .intro-photo:has(.terrain.ready) {
        opacity: .5
    }

    /* Su schermi stretti il rilievo sta sotto il testo, non dietro il titolo */
    .terrain {
        top: auto;
        height: 42%;
        -webkit-mask-image: linear-gradient(0deg, #000 60%, transparent);
        mask-image: linear-gradient(0deg, #000 60%, transparent)
    }
}

@media(max-width:480px) {
    .intro .intro-title {
        font-size: clamp(2.4rem, 11vw, 3.4rem)
    }
}

/* ===================================================================== */
/* Restyling "rilievo tecnico" (ottobre 2026)                            */
/* Fondo freddo, font di sistema, card inclinabili (tilt.js) e servizi a  */
/* listino. Sovrascrive le regole precedenti.                             */
/* ===================================================================== */
:root {
    --paper: #eef2f4;
    --line: #d3dce1;
    --muted: #4c5a65;
    --surface: #ffffff;
    --navy-2: #12304a;
    --radius: 14px;
    --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif
}

body {
    font-family: var(--sans);
    background: var(--paper)
}

.btn {
    border-radius: 10px
}

/* ----- Intestazioni di sezione ----- */
section {
    padding: 88px 0
}

.section-head {
    margin-bottom: 44px
}

/* ----- Pacchetti: card con inclinazione 3D ----- */
.packages {
    perspective: 1400px;
    gap: 26px
}

.package {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s;
    box-shadow: 0 1px 0 rgba(11, 34, 51, .04)
}

.package.tilting {
    transition: transform .08s linear, box-shadow .3s;
    box-shadow: 0 34px 60px -34px rgba(11, 34, 51, .55)
}

.package::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 42%);
    opacity: 0;
    transition: opacity .3s
}

.package.tilting::after {
    opacity: 1
}

.package.featured {
    background: var(--navy);
    border-color: var(--navy);
    color: white
}

.ribbon {
    top: 22px;
    right: 22px;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--navy)
}

.package .n {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0;
    margin-bottom: 22px
}

.package.featured .n {
    color: #a9bac6
}

.level {
    display: inline-flex;
    gap: 3px
}

.level i {
    width: 14px;
    height: 4px;
    border-radius: 2px;
    background: var(--line)
}

.level i.on {
    background: var(--orange)
}

.package.featured .level i:not(.on) {
    background: #2a4a63
}

.price {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 3.1rem;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums
}

.package.featured .price {
    color: white
}

.price small {
    font-family: var(--sans);
    letter-spacing: 0
}

.package.featured p {
    color: #c3d0d9
}

.package ul {
    border-top-color: var(--line)
}

.package.featured ul {
    border-top-color: #2a4a63
}

.package-bottom {
    background: transparent;
    color: inherit;
    border-top: 1px solid var(--line)
}

.package.featured .package-bottom {
    background: var(--navy-2);
    border-top-color: #2a4a63
}

.package-bottom small {
    color: var(--muted)
}

.package.featured .package-bottom small {
    color: #c3d0d9
}

.package:not(.featured) .package-bottom .btn {
    background: var(--navy);
    color: white
}

.package:not(.featured) .package-bottom .btn:hover {
    background: var(--navy-2)
}

.package.featured :focus-visible {
    outline-color: var(--orange)
}

/* ----- Servizi singoli a listino ----- */
.services {
    background: var(--surface)
}

.services-grid {
    display: block;
    border-top: 1px solid var(--ink)
}

.services-grid .service {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(0, 2fr) 120px 150px;
    align-items: center;
    gap: 28px;
    padding: 24px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: background .2s
}

.services-grid .service::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 2px;
    background: var(--orange);
    transform: scaleY(0);
    transition: transform .25s
}

.services-grid .service:hover {
    background: #f4f7f9
}

.services-grid .service:hover::before,
.services-grid .service:focus-within::before {
    transform: scaleY(1)
}

.service h3 {
    font-size: 1.4rem
}

.service p {
    min-height: 0;
    margin: 0
}

.service-bottom {
    display: contents
}

.service-price {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.3rem;
    text-align: right;
    font-variant-numeric: tabular-nums
}

.service button {
    border-radius: 10px;
    white-space: nowrap
}

/* ----- Form ----- */
input,
select,
textarea {
    border-radius: 10px;
    border-color: #c4ced4
}

dialog {
    border-radius: var(--radius)
}

@media(max-width:800px) {
    section {
        padding: 64px 0
    }

    .services-grid .service {
        grid-template-columns: 1fr auto;
        gap: 10px 16px;
        padding: 20px 8px
    }

    .services-grid .service p {
        grid-column: 1 / -1;
        grid-row: 2
    }

    .services-grid .service h3 {
        grid-column: 1
    }

    .service-price {
        grid-column: 2;
        grid-row: 1
    }

    .service button {
        grid-column: 1 / -1;
        justify-self: start
    }
}

@media(prefers-reduced-motion:reduce) {
    .package {
        transform: none !important
    }
}

.services-grid .service button {
    justify-self: end
}

@media(max-width:800px) {
    .services-grid .service button {
        justify-self: start
    }
}

/* Foto 3D della testata (assets/js/photo3d.js). Senza WebGL resta lo sfondo CSS. */
.photo3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity .6s ease
}

.photo3d.ready {
    opacity: 1
}

.hero-image:has(.photo3d.ready) {
    background: var(--navy)
}

.hero-image:has(.photo3d.ready)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--navy), transparent);
    pointer-events: none
}

@media(max-width:800px) {
    .hero-image:has(.photo3d.ready)::after {
        background: linear-gradient(90deg, var(--navy), transparent 70%)
    }
}

/* ----- Contatti: sezione blu, form in card bianca ----- */
.contact-section {
    background: var(--navy);
    color: white;
    border-top: 0
}

.contact-grid {
    align-items: start
}

.contact-intro {
    padding-top: 0
}

.contact-grid .contact-intro p {
    color: #c3d0d9;
    max-width: 420px
}

.contact-ways {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    border-top: 1px solid #2a4a63
}

.contact-ways li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 0;
    border-bottom: 1px solid #2a4a63
}

.contact-ways span {
    font-size: 13px;
    color: #a9bac6
}

.contact-ways a {
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere
}

.contact-ways a:hover {
    color: var(--orange)
}

.contact-intro :focus-visible {
    outline-color: var(--orange)
}

.contact-form {
    background: var(--surface);
    color: var(--ink);
    border: 0;
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55)
}

.contact-form .btn {
    background: var(--orange);
    color: var(--navy)
}

.contact-form .btn:hover {
    background: #ffa554
}

.contact-form .check input {
    accent-color: var(--navy)
}

@media(max-width:800px) {
    .contact-form {
        padding: 24px 20px
    }
}

.contact-section + .footer,
main:has(.contact-section:last-child) + .footer {
    border-top: 1px solid #2a4a63
}

/* Allineamenti del form: checkbox a filo con i campi, nessuno spazio extra
   quando l'errore della privacy è vuoto (vale anche per il checkout). */
.check input {
    margin: 2px 0 0
}

.form-grid > .field-error.full:empty {
    display: none
}

/* ===================================================================== */
/* Intro a scorrimento (assets/js/app.js, updateIntro)                    */
/* La pagina resta ferma dietro due ante che si aprono man mano che si    */
/* scorre la pista #intro-runway (1,5 schermi); ad apertura completa      */
/* l'intro sparisce e il sito scorre normalmente.                          */
/* --open / --open-eased: 0 = chiusa, 1 = aperta (impostate su :root).    */
/* ===================================================================== */
.js .intro,
.js .intro.closed {
    display: block;
    background: transparent;
    overflow: hidden;
    isolation: isolate;
    pointer-events: none
}

.intro-panel,
.intro-content,
.intro .btn,
.intro a {
    pointer-events: auto
}

/* Il sito è sticky nel body: per tutta la pista resta fermo in cima. */
.js .site {
    position: sticky;
    top: 0
}

.intro-runway {
    display: none
}

.js .intro-runway {
    display: block;
    height: 150vh;
    height: 150svh
}

.intro-runway[hidden] {
    display: none !important
}

/* Vignettatura sui bordi del sito che si intravede tra le ante */
.intro-veil {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(5, 18, 28, .78) 100%);
    opacity: calc(1 - var(--open, 0))
}

.intro-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 51%;
    z-index: 1;
    background: var(--navy);
    will-change: transform
}

.intro-panel-left {
    left: 0;
    transform: translateX(calc(var(--open-eased, 0) * -100%));
    box-shadow: 24px 0 60px -20px rgba(0, 0, 0, .6)
}

.intro .intro-photo.intro-panel-right {
    right: 0;
    left: auto;
    inset-block: 0;
    opacity: 1;
    transform: translateX(calc(var(--open-eased, 0) * 100%));
    box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .6)
}

.intro .intro-panel-right:after {
    content: none
}

/* Il testo viaggia con l'anta sinistra e sfuma per primo */
.intro .intro-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 51%;
    z-index: 2;
    transform: translateX(calc(var(--open-eased, 0) * -100%));
    opacity: calc(1 - var(--open, 0) * 1.6)
}

.intro-title span {
    display: inline-block;
    transform: translateX(calc(var(--open, 0) * -40px))
}

.intro-title span + br + span {
    transform: translateX(calc(var(--open, 0) * -90px))
}

/* Due punti luminosi sulla giuntura delle ante */
.intro-dots {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translate(-50%, -50%);
    opacity: calc(1 - var(--open, 0) * 4)
}

.intro-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 10px 2px rgba(237, 129, 41, .8), 0 0 28px 6px rgba(237, 129, 41, .35);
    animation: intro-glow 2.4s ease-in-out infinite
}

.intro-dots span + span {
    animation-delay: 1.2s
}

@keyframes intro-glow {
    50% {
        opacity: .45;
        transform: scale(.75)
    }
}

/* Metadati agli angoli */
.intro-meta,
.intro .intro-bottom {
    position: absolute;
    z-index: 3;
    font-size: 12px;
    letter-spacing: 3px;
    color: #a7b6c0;
    opacity: calc(1 - var(--open, 0) * 3)
}

.intro-meta-top {
    top: 32px;
    right: 30px
}

.intro-meta-cue {
    bottom: 30px;
    right: 30px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px
}

.intro-meta-cue:after {
    content: '';
    width: 1px;
    height: 34px;
    background: linear-gradient(var(--orange), transparent);
    animation: intro-cue 1.8s ease-in-out infinite;
    transform-origin: top
}

@keyframes intro-cue {
    0% {
        transform: scaleY(0)
    }

    60% {
        transform: scaleY(1)
    }

    100% {
        transform: scaleY(1);
        opacity: 0
    }
}

.intro .intro-bottom {
    letter-spacing: normal;
    font-size: 14px
}

@media(max-width:800px) {
    /* Su schermi stretti il testo occupa tutta la larghezza sopra le ante */
    .intro .intro-content {
        width: 100%;
        transform: translateY(calc(var(--open, 0) * -12vh));
        opacity: calc(1 - var(--open, 0) * 2.2)
    }

    .intro .intro-photo.intro-panel-right {
        opacity: 1
    }

    .intro-panel-right .terrain {
        opacity: .5
    }

    .intro-meta-top {
        display: none
    }

    .intro-meta-cue {
        right: 20px;
        bottom: 24px;
        font-size: 11px
    }

    .intro .intro-bottom {
        font-size: 12px;
        right: 140px
    }
}

@media(prefers-reduced-motion:reduce) {
    .intro-dots span,
    .intro-meta-cue:after {
        animation: none
    }
}

/* Nota sui prezzi (regime forfettario + contributo Cassa Geometri) sotto listino e servizi */
.price-terms {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 15px
}

/* Dettaglio del totale nel riepilogo della richiesta */
.summary .breakdown {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px
}
