/* app.css */
:root {
    --navH: 72px;
}
body, .accordion-body{
    background: #fdfdf2;
    color: #105C3E;
}
a{
    font-weight: bold;
    color: #105C3E;
}
/* altezza nav ~ 56–80px, regola se serve */
html {
    scroll-behavior: smooth;
}

/* Stile delicato per l’accordion */
.accordion-button {
    font-family: "Lora", serif;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    box-shadow: none;
}

.accordion-flush .accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-button:not(.collapsed) {
    background-color: #fff !important;;
}

/* quando raggiungi una sezione via #ancora,
   il browser la posiziona tenendo conto del menu */
section[id] {
    scroll-margin-top: var(--navH);
}

/* fallback classico con pseudo-elemento */
section[id]::before {
    content: "";
    display: block;
    height: var(--navH);
    margin-top: calc(-1 * var(--navH));
    visibility: hidden;
}

body {
    font-family: "Alex Brush", cursive;
    font-weight: 400;
    font-style: normal;
}

.bigTitle {
    font-size: 6rem;
}

.subTitle {
    font-size: 3rem;
}

.fw-bold, textarea {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.weddingSection {
    margin-top: 100px;
    margin-bottom: 100px;
}

p, li, .accordion-body, .accordion-button, #rsvp label {
    font-size: 1.2rem;
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.mw-50 {
    max-width: 50px !important;
}

.nav a {
    font-size: 1.2rem;
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

@media (min-width: 600px) {
    .nav-link.active {
        border-bottom: 2px solid #105C3E;
    }
}


/* FORM */
form input, form button, form select {
    font-size: 1.2rem;
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    border: 1px solid #105C3E;
}

form input, form textarea, form button, form select{
    width: 40%;
}
form button{
    background: #105C3E;
    border-color: #105C3E;
    color: #fff;
}
/*
Mobile
 */
/* Titolo grande: tua richiesta */
@media (max-width: 600px) {
    .bigTitle { font-size: 3rem; }
}

/* Forza il breakpoint a 600px (facoltativo)
   Così il menù collassa fino a 600px invece che 576px */
@media (max-width: 600px) {
    .navbar-expand-sm .navbar-collapse {
        display: none !important;
    }
    .navbar-expand-sm .navbar-toggler {
        display: inline-flex;
    }
    .navbar-expand-sm .navbar-collapse.collapse.show {
        display: block !important;
    }
}

/* Dropdown mobile: pannello pieno e piacevole */
@media (max-width: 600px) {
    .mainImage{
        max-width: 65% !important;
    }
    #dove-dormire .col-lg-6{
        text-align: center;
    }
    #dove-dormire ul{
        list-style: none;
    }
    form input, form textarea, form button, form select{
        width: 90%;
    }
    #main-nav .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
        border-top: 1px solid rgba(0,0,0,.06);
        padding: .75rem 1rem;
        z-index: 1040;
    }
    #main-nav .nav-link {
        padding: .6rem 0;
        font-size: 1.05rem;
    }
}


/* --- Burger carino --- */
.burger {
    width: 32px;
    height: 24px;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: auto;
    outline: none;
    background: transparent;
}
.burger .burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #222;
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
}

/* Animazione in "X" quando il menù è aperto */
.burger.is-active .burger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.burger.is-active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger.is-active .burger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Desktop: mantieni la tua estetica */
@media (min-width: 601px) {
    #main-nav .navbar-nav .nav-link { padding: .5rem 1rem; }
}
/* Overlay a tutto schermo */
.flash-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 1999;
}

/* Popup centrato */
.flash-popup {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 2000;
    opacity: 0;
    transform: scale(.96);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

/* Stato visibile */
.flash-popup.show,
.flash-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.flash-popup.show { transform: scale(1); }

.flash-popup .popup-inner {
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    width: min(520px, 92vw);
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    gap: .9rem;
    border-top: 6px solid;
}

.flash-popup.success .popup-inner { border-color: #28a745; }
.flash-popup.danger  .popup-inner { border-color: #dc3545; }

.popup-text {
    flex: 1;
    color: #333;
    font-size: 1.2rem;
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.popup-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0 .1rem;
    transition: color .15s;
}
.popup-close:hover { color: #000; }

/* Mobile */
@media (max-width: 600px) {
    .flash-popup .popup-inner { padding: 1rem 1.1rem; }
    .popup-text { font-size: 1rem; }
}
.mainImage{
    max-width: 400px;
}