/* =========================
   DOVE TROVARCI
========================= */

.location-section {
    background: var(--cream);
    padding-top: 42px;
    padding-bottom: 52px;
}

.location-intro {
    max-width: 1180px;
    margin: 0 auto 24px;
}

.location-intro .kicker {
    margin-bottom: 14px;
}

.location-intro h2 {
    margin-bottom: 10px;
    font-size: clamp(44px,4.5vw,66px);
}

.location-intro > p:last-child {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.location-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0,1.45fr) minmax(320px,.8fr);
    gap: 24px;
    align-items: stretch;
}

.location-map {
    position: relative;
    height: clamp(500px,50vh,540px);
    min-height: 0;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 16px 36px rgba(57,45,39,.09);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    border: 0;
}

.location-map iframe[hidden] {
    display: none;
}

.location-map-placeholder {
    width: 100%;
    height: 100%;
    padding: 36px;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        linear-gradient(rgba(255,250,246,.88), rgba(255,250,246,.88)),
        repeating-linear-gradient(45deg, var(--cream) 0 18px, var(--blush) 18px 19px);
}

.location-map-placeholder[hidden] {
    display: none;
}

.map-placeholder-content {
    max-width: 460px;
}

.map-placeholder-content .kicker {
    margin-bottom: 12px;
    color: var(--coral);
}

.map-placeholder-content h3 {
    margin: 0 0 14px;
    font: 500 clamp(30px,3.5vw,44px)/1.04 "Manrope",sans-serif;
    letter-spacing: -.04em;
}

.map-placeholder-content p {
    margin: 0 auto 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.map-load-button {
    border: 0;
    cursor: pointer;
}

.map-privacy-link {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    font-size: 12px !important;
}

.map-privacy-link a {
    color: var(--coral);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.location-card {
    height: clamp(500px,50vh,540px);
    min-height: 0;
    padding: 38px 44px;
    border-radius: 28px;
    background: var(--slate);
    color: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-card .kicker {
    margin-bottom: 14px;
    color: var(--blush);
}

.location-card h3 {
    margin: 0;
    font: 500 clamp(34px,3.2vw,50px)/1.02 "Manrope",sans-serif;
    letter-spacing: -.045em;
}

.location-address {
    margin: 26px 0 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255,250,246,.28);
    border-bottom: 1px solid rgba(255,250,246,.28);
    display: grid;
    gap: 3px;
}

.location-address span:first-child {
    font-size: 17px;
    font-weight: 600;
}

.location-address span:last-child {
    color: rgba(255,250,246,.72);
    font-size: 12px;
}

.location-copy {
    max-width: 390px;
    margin: 18px 0 0;
    color: rgba(255,250,246,.78);
    font-size: 13px;
    line-height: 1.6;
}

.location-directions {
    align-self: flex-start;
    min-height: 52px;
    margin-top: 24px;
    padding-inline: 26px;
}

.location-directions:focus-visible {
    outline: 3px solid var(--blush);
    outline-offset: 4px;
}

/* Footer */
.location-section + footer {
    min-height: 0;
    background: var(--rose);
    padding: 24px clamp(34px,6vw,96px) 16px;
    gap: 14px 40px;
}

.location-section + footer::before {
    content: none;
}

.location-section + footer .footer-brand .kicker {
    margin-bottom: 5px;
    color: var(--ink);
}

.location-section + footer h2 {
    font-size: clamp(30px,3vw,40px);
    line-height: 1;
}

.location-section + footer .footer-socials {
    align-self: center;
}

.location-section + footer .footer-bottom {
    margin-top: 0;
    padding-top: 11px;
    border-top-color: rgba(37,40,42,.22);
}

.location-section + footer .footer-note,
.location-section + footer .site-credit {
    color: var(--ink);
}

.footer-legal {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-legal a,
.footer-consent-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* =========================
   CONSENSO CONTENUTI ESTERNI
========================= */

.consent-banner {
    position: fixed;
    z-index: 3000;
    left: calc(50% + 46px);
    bottom: 22px;
    width: min(900px, calc(100vw - 132px));
    transform: translateX(-50%);
    padding: 20px 58px 20px 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,250,246,.98);
    box-shadow: 0 18px 48px rgba(37,40,42,.2);
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 24px;
    backdrop-filter: blur(12px);
}

.consent-banner[hidden],
.consent-preferences-backdrop[hidden] {
    display: none;
}

.consent-kicker {
    margin: 0 0 5px;
    color: var(--coral);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.consent-banner h2,
.consent-preferences h2 {
    margin: 0;
    font-family: "Manrope",sans-serif;
    font-weight: 500;
    letter-spacing: -.035em;
}

.consent-banner h2 {
    font-size: 22px;
}

.consent-banner-copy > p:not(.consent-kicker) {
    max-width: 590px;
    margin: 7px 0 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.consent-banner-copy > a {
    color: var(--coral);
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consent-actions,
.consent-dialog-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.consent-button {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid var(--slate);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.consent-button:hover {
    transform: translateY(-1px);
}

.consent-button-primary {
    background: var(--slate);
    color: var(--paper);
}

.consent-button-secondary {
    background: var(--paper);
    color: var(--slate);
}

.consent-banner-close,
.consent-dialog-close {
    position: absolute;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.consent-banner-close {
    top: 12px;
    right: 12px;
}

.consent-button:focus-visible,
.consent-banner-close:focus-visible,
.consent-dialog-close:focus-visible,
.footer-consent-button:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

.consent-preferences-backdrop {
    position: fixed;
    z-index: 3100;
    inset: 0;
    padding: 20px;
    display: grid;
    place-items: center;
    background: rgba(23,24,25,.52);
}

.consent-preferences {
    position: relative;
    width: min(560px,100%);
    max-height: min(720px,calc(100vh - 40px));
    overflow-y: auto;
    padding: 34px;
    border-radius: 26px;
    background: var(--paper);
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.consent-preferences h2 {
    font-size: clamp(30px,5vw,42px);
}

.consent-dialog-intro {
    margin: 12px 0 28px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.consent-dialog-close {
    top: 18px;
    right: 18px;
}

.consent-preference-row {
    min-height: 84px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.consent-preference-row strong,
.consent-preference-row small {
    display: block;
}

.consent-preference-row strong {
    margin-bottom: 4px;
    font-size: 14px;
}

.consent-preference-row small {
    max-width: 340px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.consent-always-on {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.consent-preference-toggle {
    cursor: pointer;
}

.consent-preference-toggle input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: var(--coral);
    cursor: pointer;
}

.consent-dialog-actions {
    justify-content: flex-end;
    margin-top: 26px;
}

@media (max-width:1100px) {
    .consent-banner {
        left: 50%;
        width: min(900px,calc(100vw - 36px));
    }
}

@media (max-width:900px) {
    .location-section {
        padding-top: 54px;
        padding-bottom: 46px;
    }

    .location-layout {
        grid-template-columns: 1fr;
    }

    .location-map {
        height: 430px;
    }

    .location-card {
        height: auto;
        min-height: 410px;
    }

    .consent-banner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .consent-actions {
        justify-content: flex-end;
    }
}

@media (max-width:600px) {
    .location-section {
        padding-top: 48px;
        padding-bottom: 38px;
    }

    .location-intro {
        margin-bottom: 24px;
    }

    .location-intro h2 {
        font-size: 42px;
        line-height: 1.02;
    }

    .location-layout {
        gap: 18px;
    }

    .location-map {
        height: 340px;
        border-radius: 22px;
    }

    .location-map-placeholder {
        padding: 24px 20px;
    }

    .map-placeholder-content h3 {
        font-size: 32px;
    }

    .map-placeholder-content p {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .location-card {
        height: auto;
        min-height: 0;
        padding: 38px 24px;
        border-radius: 22px;
    }

    .location-card h3 {
        font-size: 38px;
    }

    .location-directions {
        width: 100%;
    }

    .location-section + footer {
        padding: 26px 22px 18px;
    }

    .location-section + footer h2 {
        font-size: 34px;
    }

    .location-section + footer .footer-bottom {
        margin-top: 2px;
    }

    .consent-banner {
        bottom: 12px;
        width: calc(100vw - 24px);
        padding: 18px 48px 18px 18px;
        border-radius: 18px;
    }

    .consent-banner h2 {
        font-size: 20px;
    }

    .consent-banner-copy > p:not(.consent-kicker) {
        font-size: 12px;
    }

    .consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .consent-actions .consent-button-primary {
        grid-column: 1/-1;
    }

    .consent-button {
        width: 100%;
        padding-inline: 12px;
    }

    .consent-preferences-backdrop {
        padding: 12px;
    }

    .consent-preferences {
        padding: 28px 20px 22px;
        border-radius: 22px;
    }

    .consent-preference-row {
        gap: 16px;
    }
}
