/* Richieste di preventivo: componenti isolati dai controlli fissi del sito. */
.quote-section {
    padding: clamp(44px, 6vw, 80px) 0;
    background: #f4f8fd;
    scroll-margin-top: 110px;
}

.quote-card {
    min-width: 0;
    border: 1px solid #d9e5f3;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(18, 39, 74, .07);
}

.quote-card .quote-eyebrow,
.quote-section .quote-eyebrow {
    margin: 0 0 14px;
    color: #07594e;
    font: 800 12px/1.5 "Manrope", sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.quote-card .quote-heading,
.quote-section .quote-heading {
    margin: 0 0 20px;
    color: #0c2445;
    font: 800 clamp(28px, 3vw, 40px)/1.15 "DM Sans", sans-serif;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.quote-card .quote-intro,
.quote-section .quote-intro {
    margin: 0;
    color: #4d6078;
    font: 500 16px/1.8 "Manrope", sans-serif;
}

.quote-card .quote-points {
    display: grid;
    gap: 18px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.quote-points li {
    min-width: 0;
    padding-left: 17px;
    border-left: 3px solid #89cfc0;
}

.quote-points strong,
.quote-points span {
    display: block;
}

.quote-points strong {
    margin-bottom: 4px;
    color: #0c2445;
    font-size: 16px;
    line-height: 1.5;
}

.quote-points span {
    color: #4d6078;
    font: 500 14px/1.75 "Manrope", sans-serif;
}

.quote-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 22px;
    margin-top: 28px;
}

.quote-card a.quote-button,
.quote-section a.quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 14px 22px;
    border: 1px solid #08745d;
    border-radius: 999px;
    background: #08745d;
    color: #fff;
    font: 800 14px/1.5 "Manrope", sans-serif;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.quote-card a.quote-button:hover,
.quote-section a.quote-button:hover {
    background: #055c49;
    box-shadow: 0 8px 20px rgba(8, 116, 93, .16);
}

.quote-card a.quote-link,
.quote-section a.quote-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #084ab2;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.quote-card a:focus-visible,
.quote-section a:focus-visible {
    outline: 3px solid #0f66e8;
    outline-offset: 5px;
}

.quote-card--service {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.quote-service-copy {
    min-width: 0;
    padding: clamp(28px, 3.5vw, 46px);
    border-radius: 23px 0 0 23px;
    background: radial-gradient(ellipse at 0 0, #174979 0, transparent 70%), #0c2445;
}

.quote-service-copy .quote-eyebrow {
    color: #9de0cd;
}

.quote-service-copy .quote-heading,
.quote-service-copy .quote-points strong {
    color: #fff;
}

.quote-service-copy .quote-intro,
.quote-service-copy .quote-points span {
    color: #d3e1f1;
}

.quote-service-request {
    min-width: 0;
    align-self: center;
    padding: clamp(28px, 3.5vw, 46px);
}

.quote-card .quote-request-heading {
    margin: 0 0 12px;
    color: #0c2445;
    font: 800 24px/1.3 "DM Sans", sans-serif;
    letter-spacing: -.02em;
}

.quote-card .quote-note {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e1e9f3;
    color: #586a80;
    font: 500 13px/1.75 "Manrope", sans-serif;
}

.quote-card--guide {
    margin: 40px 0;
    padding: clamp(22px, 3vw, 36px);
    border-top: 4px solid #128c7e;
    background: linear-gradient(140deg, #eef7ff 0%, #f5fbf8 100%);
    box-shadow: none;
}

.guide-site .quote-card--guide .quote-heading {
    font-size: clamp(25px, 2.5vw, 32px);
    scroll-margin-top: calc(var(--guide-anchor-offset, 110px) + clamp(22px, 3vw, 36px) + 36px);
}

.quote-card--guide .quote-points {
    gap: 16px;
    margin-top: 22px;
}

.quote-home-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
}

.quote-home-copy {
    min-width: 0;
}

.quote-service-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quote-section a.quote-option {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid #d6e3f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 39, 74, .04);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.quote-option .quote-option-label {
    margin-bottom: 10px;
    color: #07594e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.5;
    text-transform: uppercase;
}

.quote-option strong {
    margin-bottom: 8px;
    color: #0c2445;
    font-size: 20px;
    line-height: 1.3;
}

.quote-option .quote-option-description {
    color: #52647c;
    font: 500 14px/1.65 "Manrope", sans-serif;
}

.quote-option .quote-option-action {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    color: #084ab2;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.quote-section a.quote-option:hover {
    border-color: #6e9ed9;
    box-shadow: 0 12px 30px rgba(18, 39, 74, .09);
}

@media (max-width: 900px) {
    .quote-card--service,
    .quote-home-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .quote-service-copy {
        border-radius: 23px 23px 0 0;
    }
}

@media (max-width: 540px) {
    .quote-section {
        padding: 40px 0;
    }

    .quote-service-copy,
    .quote-service-request {
        padding: 24px 20px;
    }

    .quote-service-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .quote-section a.quote-option {
        padding: 22px;
    }

    .quote-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .quote-actions .quote-link {
        justify-content: center;
        text-align: center;
    }
}

/* Nei preventivi delle guide il testo lascia spazio a icona e freccia su mobile. */
@media (max-width: 640px) {
    .guide-site .quote-card--guide a.quote-button[href^="https://api.whatsapp.com/"] {
        gap: 6px;
        padding-inline: 12px;
        font-size: clamp(.875rem, 4vw, 1rem);
        line-height: 1.4;
    }
}

/* Lascia spazio alle parole lunghe anche sui display più stretti. */
@media (max-width: 319px) {
    .quote-service-copy,
    .quote-service-request {
        padding-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quote-card a,
    .quote-section a {
        transition: none !important;
    }
}

@media print {
    .quote-card,
    .quote-section,
    .quote-service-copy {
        background: #fff;
        box-shadow: none;
    }

    .quote-service-copy :is(.quote-heading, .quote-eyebrow, .quote-intro, strong, span) {
        color: #172033;
    }
}
