/* =========================
   BASE
   ========================= */
html {
    font-size: 15px;
    min-height: 100%;
    background: #f8f9fa;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #343a40;
    background: #f8f9fa;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: #b48a00;
    text-decoration: none;
    transition: color 0.2s;
}

    a:hover {
        color: #8d6a00;
        text-decoration: underline;
    }

@media (min-width:768px) {
    .header-logo-mobile {
        display: none !important;
    }
}

/* =========================
   NAVBAR
   ========================= */
.navbar-matrimonio {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    padding-top: 2rem;
    padding-bottom: 0.7rem;
    z-index: 100;
}

    .navbar-matrimonio .navbar-brand {
        font-size: 2rem;
        color: #b48a00 !important;
        letter-spacing: 0.08em;
    }

    .navbar-matrimonio .nav-link {
        font-size: 1.1rem;
        color: #343a40 !important;
        margin-left: 1.2rem;
        font-weight: 500;
        transition: color 0.2s;
    }

        .navbar-matrimonio .nav-link:hover,
        .navbar-matrimonio .nav-link.active {
            color: #b48a00 !important;
        }

.navbar-toggler {
    border: none;
    background: transparent !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(180,138,0,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.mt-navbar {
    margin-top: 72px;
}

.pt-navbar {
    padding-top: 100px;
}

@media (max-width: 991.98px) {
    .mt-navbar, .pt-navbar {
        margin-top: 60px;
        padding-top: 60px;
    }
}

@media (max-width: 767.98px) {
    .mt-navbar, .pt-navbar {
        margin-top: 56px;
        padding-top: 56px;
    }
}

.pb-3 {
    padding-bottom: 0;
}

/* =========================
   HEADER HOME (COLLAGE)
   ========================= */

header {
    position: relative;
}

.header-logo-mobile {
    display: block;
    height: auto;
    position: absolute;
    left: 1rem; /* posiziona a sinistra */
    top: 0.75rem; /* leggermente sotto il bordo superiore */
    z-index: 1030; /* sopra altri contenuti */
    pointer-events: auto; /* permettere click sul logo */
}

    .header-fullscreen {
    width: 100vw;
    height: 100vh;
    min-height: 400px;
    background: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    max-width: 100vw;
}

.header-collage {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    position: relative;
    align-items: stretch;
    justify-items: stretch;
    background: #fff;
    overflow: hidden;
}

    .header-collage::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(30, 30, 30, 0.32);
        pointer-events: none;
        z-index: 2;
    }

.collage-img {
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

    .collage-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.collage-img-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    aspect-ratio: 2/3;
}

.collage-img-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    aspect-ratio: 1/1;
}

.collage-img-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    aspect-ratio: 1/1;
}

.collage-img-4 {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    aspect-ratio: 2/3;
}

@media (max-width: 991.98px) {
    .header-fullscreen {
        padding-top: 0;
    }
}

@media (max-width: 767.98px) {
    .header-fullscreen {
        padding-top: 56px;
        min-height: 320px;
        height: 100vh;
    }

    .header-collage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 0;
        width: 100vw;
        height: calc(100vh - 56px);
        max-width: 100vw;
        max-height: 100vh;
        min-height: 220px;
        padding: 0;
        margin: 0;
    }

    .collage-img {
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        height: 100%;
    }

    .collage-img-1 {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        aspect-ratio: 1/1;
    }

    .collage-img-2 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        aspect-ratio: 1/1;
    }

    .collage-img-3 {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        aspect-ratio: 1/1;
    }

    .collage-img-4 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        aspect-ratio: 1/1;
    }
}

/* Overlay e titoli */
.header-overlay-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.header-title-full {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 32px rgba(0,0,0,0.25);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    background: rgba(0,0,0,0.25);
    border-radius: 1rem;
    padding: 0.5rem 2rem;
}

.header-date-full {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    background: rgba(0,0,0,0.18);
    border-radius: 1rem;
    padding: 0.3rem 1.2rem;
}

@media (max-width: 991.98px) {
    .header-title-full {
        font-size: 2rem;
    }

    .header-date-full {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .header-title-full {
        font-size: 1.2rem;
        padding: 0.3rem 1rem;
    }

    .header-date-full {
        font-size: 0.9rem;
        padding: 0.2rem 0.7rem;
    }
}

/* Mobile: usa flex per posizionare logo a sinistra e icona menu a destra */
@media (max-width: 767.98px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-logo-mobile-video {
        position: absolute;
        margin: 0;
        max-height: 40%;
    }

    .header-logo-mobile {
        position: fixed;
        /* left: auto; */
        /* top: auto; */
        margin: 0;
        /* height: 44px; */
        display: flex;
    }

    /* Assicura che il bottone del menu (navbar-toggler) sia sulla destra */
    .navbar-toggler {
        position: static;
        margin: 0;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* =========================
   BANNER CUORE PAGINE SECONDARIE
   ========================= */
.page-banner-fancy {
    display: none;
    position: sticky;
    top: 56px;
    z-index: 1020;
    width: 100%;
    background: #f8f9fa;
    min-height: 60px;
    margin-top: 0;
    margin-bottom: 1.5rem;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1.5rem;
}

@media (min-width: 576px) {
    .page-banner-fancy {
        display:none;
        top: 60px;
    }
}

@media (min-width: 992px) {
    .page-banner-fancy {
        display: none;
        top: 72px;
    }
}

@media (max-width: 767.98px) {
    .page-banner-fancy {
        display: none;
        min-height: 38px;
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding-top: 1rem;
    }
}

.page-banner-heart-wrap {
    display: none;
    background: radial-gradient(circle at 60% 40%, #fffbe6 60%, #fff9c4 100%);
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(180,138,0,0.10), 0 1.5px 0 #ffe082;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 0.2rem;
    pointer-events: auto;
}

.page-banner-heart {
    display: none;
    color: #b48a00;
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 8px #fff9c4);
    animation: heart-beat 2.2s infinite;
}

@keyframes heart-beat {
    0%, 100% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.18);
    }

    20% {
        transform: scale(0.95);
    }

    30% {
        transform: scale(1.10);
    }

    40% {
        transform: scale(1);
    }
}

.page-banner-fancy-line {
    display: block;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #fff9c4 0%, #b48a00 100%);
    opacity: 0.7;
    margin-top: 0.5rem;
    box-shadow: 0 1.5px 0 #ffe082;
}

@media (max-width: 767.98px) {
    .page-banner-heart-wrap {
        width: 40px;
        height: 40px;
    }

    .page-banner-heart {
        font-size: 1.5rem;
    }

    .page-banner-fancy-line {
        width: 38px;
        height: 3px;
    }
}

/* =========================
   FRECCIA ANIMATA HOME
   ========================= */
.scroll-down-arrow {
    position: absolute;
    left: 50%;
    bottom: 35px;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    text-decoration: none;
    color: #b48a00;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

    .scroll-down-arrow span {
        display: block;
        width: 40px;
        height: 40px;
        border-bottom: 3px solid white;
        border-right: 3px solid white;
        transform: rotate(45deg);
        margin-bottom: 1.8rem;
        animation: arrow-bounce 1.2s infinite;
    }

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }

    50% {
        transform: translateY(12px) rotate(45deg);
    }
}

.scroll-down-text {
    font-size: 1.4rem;
    color: white;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(255,255,255,0.7);
}

@media (max-width: 767.98px) {
    .scroll-down-arrow span {
        width: 22px;
        height: 22px;
        bottom: 80px !important;
    }

    .scroll-down-arrow {
    bottom: 80px;
    }

    .scroll-down-text {
        font-size: 0.9rem;
    }
}

/* =========================
   SECTIONS & ANIMAZIONE
   ========================= */
.section-letrabe {
    background: #fff;
    padding: 4rem 0 3rem 0;
    margin-bottom: 2.5rem;
    border-radius: 1.2rem;
    box-shadow: 0 2px 24px rgba(0,0,0,0.04);
    border: none;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}

    .section-letrabe.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .section-letrabe:not(:last-child)::after {
        content: "";
        display: block;
        position: absolute;
        left: 50%;
        bottom: -1.25rem;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        border-radius: 2px;
        background: linear-gradient(90deg, #fff9c4 0%, #b48a00 100%);
        opacity: 0.5;
        z-index:  -1; 
    }

.section-title-letrabe {
    font-size: 2.2rem;
    font-weight: 700;
    color: #b48a00;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.section-text-letrabe {
    font-size: 1.2rem;
    color: #343a40;
    max-width: 700px;
    margin: 0 auto;
}

.section-subtitle-letrabe {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    .section-title-letrabe {
        font-size: 1.3rem;
    }

    .section-letrabe {
        padding: 2.2rem 0 1.5rem 0;
        margin-bottom: 1.2rem;
        border-radius: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .section-letrabe {
        padding: 1.2rem 0 0.7rem 0;
        margin-bottom: 2.5rem; /* era 0.7rem */
        border-radius: 0.7rem;
    }
}

/* =========================
   GALLERIA
   ========================= */
.img-gallery-letrabe {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 2px solid #fff9c4;
    transition: transform 0.2s;
}

    .img-gallery-letrabe:hover {
        transform: scale(1.04);
        border-color: #b48a00;
    }

@media (max-width: 767.98px) {
    .img-gallery-letrabe {
        border-radius: 0.7rem;
    }
}

/* =========================
   CITAZIONI
   ========================= */
.blockquote-letrabe {
    background: #f8f9fa;
    border-left: 5px solid #b48a00;
    padding: 1.2rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 0.7rem;
    font-style: italic;
    color: #6c757d;
}

    .blockquote-letrabe footer {
        color: #b48a00;
        font-size: 1rem;
        font-style: normal;
        margin-top: 0.5rem;
    }

/* =========================
   MESSAGGI
   ========================= */
.message-card-letrabe {
    background: #fffbe6;
    border: 1px solid #ffe082;
    border-radius: 1.2rem;
    min-height: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

@media (max-width: 767.98px) {
    .message-card-letrabe {
        border-radius: 0.7rem;
    }
}

/* =========================
   PROGRAMMA
   ========================= */
.programma-box-letrabe {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 1.2rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.programma-title-letrabe {
    color: #b48a00;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
    .programma-box-letrabe {
        border-radius: 0.7rem;
    }
}

/* =========================
   FORM RSVP
   ========================= */
form .form-label {
    color: #b48a00;
    font-weight: 600;
}

form .btn-success {
    background: #b48a00;
    border: none;
    font-weight: 600;
    border-radius: 2rem;
}

    form .btn-success:hover {
        background: #8d6a00;
    }

/* =========================
   MAPPA
   ========================= */
.ratio {
    background: #e9ecef;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

@media (max-width: 767.98px) {
    .ratio {
        border-radius: 0.7rem;
    }
}

/* =========================
   FOOTER MODERNO
   ========================= */
.footer-matrimonio {
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.03);
    color: #343a40;
    font-size: 1rem;
    margin-top: 3rem;
}

.footer-title {
    color: #b48a00;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #343a40;
    transition: color 0.2s;
}

    .footer-links a:hover {
        color: #b48a00;
        text-decoration: underline;
    }

.footer-social a {
    color: #b48a00;
    font-size: 1.5rem;
    margin-right: 0.5rem;
    transition: color 0.2s;
    display: inline-block;
}

    .footer-social a:last-child {
        margin-right: 0;
    }

    .footer-social a:hover {
        color: #8d6a00;
    }

.footer-divider {
    border: none;
    border-top: 1.5px solid #f2e6b1;
    opacity: 1;
    margin: 2rem 0 1rem 0;
}

@media (max-width: 767.98px) {
    .footer-matrimonio {
        font-size: 0.97rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }
}

/* =========================
   BOTTONCINO STILOSO
   ========================= */
.btn-letrabe-link {
    background: #fffbe6;
    color: #b48a00;
    border: 1.5px solid #ffe082;
    border-radius: 2rem;
    font-weight: 600;
    padding: 0.45rem 1.4rem;
    font-size: 1.08rem;
    margin-top: 1.2rem;
    transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(180,138,0,0.07);
    display: inline-block;
}

    .btn-letrabe-link:hover, .btn-letrabe-link:focus {
        background: #b48a00;
        color: #fffbe6;
        border-color: #b48a00;
        text-decoration: none;
        box-shadow: 0 4px 16px rgba(180,138,0,0.13);
    }



.header-video-mobile {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    background: #000;
    display: block;
}

.header-video-element {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
    background: #000;
}

@media (min-width: 768px) {
    .header-video-mobile {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .header-collage {
        display: none !important;
    }

    .header-video-mobile {
        display: block !important;
    }
}


@media (max-width: 767.98px) {
    .modal-fullscreen-mobile {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        margin: 0;
    }

        .modal-fullscreen-mobile .modal-content {
            height: 100vh;
            border-radius: 0;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            background: #000;
        }

        .modal-fullscreen-mobile .modal-body {
            flex: 1 1 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        .modal-fullscreen-mobile .modal-footer {
            background: rgba(255,255,255,0.95);
            border-top: none;
            border-radius: 1.2rem 1.2rem 0 0;
            padding: 1rem 1rem 0.7rem 1rem;
            box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
            min-height: 90px;
            text-align: left;
            width: 100%;
        }

            .modal-fullscreen-mobile .modal-footer .btn {
                width: 100%;
            }
}

@media (max-width: 767.98px) {
    .folder-card {
        border: none;
        background: #fffbe6;
        border-radius: 1.2rem;
        box-shadow: 0 2px 12px rgba(180,138,0,0.08);
        margin-bottom: 1.2rem;
        transition: box-shadow 0.2s;
    }

        .folder-card:active {
            box-shadow: 0 4px 24px rgba(180,138,0,0.18);
        }

        .folder-card img {
            border-radius: 1rem;
            margin-bottom: 0.5rem;
            box-shadow: 0 1.5px 8px rgba(180,138,0,0.08);
        }

        .folder-card .fw-bold {
            font-size: 1.2rem;
            color: #b48a00;
        }
}

@media (max-width: 767.98px) {
    .modal-fullscreen-mobile .modal-body img {
        border-radius: 0;
        box-shadow: none;
        background: #000;
    }

    .modal-fullscreen-mobile .modal-footer {
        font-size: 1.1rem;
        padding-top: 0.7rem;
    }
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 2rem;
}

.insta-photo {
    cursor: pointer;
    border-radius: 0.7rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(180,138,0,0.07);
    background: #fff;
    transition: box-shadow 0.18s, transform 0.18s;
    border: 1.5px solid #fff9c4;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .insta-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.18s;
    }

    .insta-photo:hover {
        box-shadow: 0 4px 16px rgba(180,138,0,0.13);
        transform: scale(1.04);
        border-color: #b48a00;
    }

    /* Countdown */

/* ========================= 
   COUNTDOWN 
   ========================= */
.cd-section {
    background: #fff;
    border-bottom: 1px solid #f2e6b1;
    padding: 1.8rem 1rem 1.5rem;
    text-align: center;
}

.cd-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b48a00;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cd-nome {
    font-size: 1.2rem;
    font-weight: 500;
    color: #b48a00;
    font-family: Georgia, serif;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.cd-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0.8rem;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
}

.cd-num {
    font-size: 2.2rem;
    font-weight: 500;
    color: #b48a00;
    font-family: Georgia, serif;
    line-height: 1;
    min-width: 58px;
    text-align: center;
    transition: transform 0.15s ease;
}

.cd-sep {
    font-size: 1.8rem;
    color: #ffe082;
    line-height: 1;
    margin-top: 4px;
    align-self: flex-start;
}

.cd-unit {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #bbb;
    margin-top: 4px;
}

.cd-data {
    font-size: 0.82rem;
    color: #ccc;
    letter-spacing: 0.1em;
}

@media (max-width: 767.98px) {
    .cd-num {
        font-size: 1.7rem;
        min-width: 44px;
    }

    .cd-sep {
        font-size: 1.4rem;
    }

    .cd-grid {
        gap: 4px;
    }
}

.cd-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    margin-top: 1.5rem;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.cd-num {
    font-size: 3rem;
    font-weight: 500;
    color: #b48a00;
    font-family: Georgia, serif;
    line-height: 1;
    text-align: center;
    border: 1.5px solid #ffe082;
    border-radius: 0.8rem;
    padding: 0.4rem 0.6rem;
    background: #fffbe6;
    min-width: 80px;
}

.cd-sep {
    font-size: 2.5rem;
    color: #ffe082;
    line-height: 1;
    margin-top: 10px;
    align-self: flex-start;
}

.cd-unit {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #bbb;
    margin-top: 6px;
}

@media (max-width: 767.98px) {
    .cd-num {
        font-size: 2rem;
        min-width: 58px;
        padding: 0.3rem 0.4rem;
    }

    .cd-sep {
        font-size: 1.8rem;
        margin-top: 8px;
    }

    .cd-grid {
        gap: 6px;
    }

    .cd-block {
        min-width: 58px;
    }
}

.consenso-box {
    background: #fffbe6;
    border: 1.5px solid #ffe082;
    border-radius: 0.8rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
    color: #6c757d;
}

    .consenso-box label {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        cursor: pointer;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .consenso-box input[type="checkbox"] {
        margin-top: 3px;
        accent-color: #b48a00;
        flex-shrink: 0;
        width: 15px;
        height: 15px;
    }

    .consenso-box a {
        color: #b48a00;
    }

.consenso-badge-facoltativo {
    display: inline-block;
    font-size: 0.72rem;
    background: #ffe082;
    color: #7a6000;
    border-radius: 2rem;
    padding: 0.1rem 0.5rem;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 600;
}

.allergie-locked {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s;
}

.consenso-box {
    background: #fffbe6;
    border: 1.5px solid #ffe082;
    border-radius: 0.8rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
    color: #6c757d;
}

    .consenso-box label {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        cursor: pointer;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .consenso-box input[type="checkbox"] {
        margin-top: 3px;
        accent-color: #b48a00;
        flex-shrink: 0;
        width: 15px;
        height: 15px;
    }

    .consenso-box a {
        color: #b48a00;
    }

.consenso-badge-facoltativo {
    display: inline-block;
    font-size: 0.72rem;
    background: #ffe082;
    color: #7a6000;
    border-radius: 2rem;
    padding: 0.1rem 0.5rem;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 600;
}

.allergie-locked {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s;
}