/* ============================================================
   Formento 40 — « 40 anni oltre il sogno »
   Brand stylesheet. Tokens da resources/branding.md + figma-specs.md.
   Caricato DOPO bootstrap in Site.Master per avere la precedenza.
   ============================================================ */

:root {
    --formento-green: #0B724E;   /* primario: sfondi, header */
    --formento-yellow: #D79B00;  /* accento: CTA, titoli evidenziati, icone */
    --formento-white: #FFFFFF;
    --formento-green-dark: #095c3f;
    --font-title: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    --font-body: 'Gantari', Arial, Helvetica, sans-serif;
}

html, body {
    background-color: var(--formento-green);
    color: var(--formento-white);
    font-family: var(--font-body);
    margin: 0;
    min-height: 100%;
}

.body-content {
    max-width: 1100px;
}

/* ---- Tipografia ---- */
.title {
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: var(--formento-white);
}

.head {
    font-family: var(--font-body);
    color: var(--formento-white);
}

a {
    color: var(--formento-yellow);
}

/* ---- Header / logo ---- */
.formento-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Hero ---- */
.formento-hero-title {
    font-family: var(--font-title);
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.0;
    letter-spacing: -.2rem;
    margin: .5rem 0 2.5rem 1rem;
}

.formento-hero-title .line-1 { color: var(--formento-white); display: block; font-weight: 400; }
.formento-hero-title .line-2 { color: var(--formento-yellow); display: block; }

/* asp:Panel wrapper — transparent to flex layout so Bootstrap cols work */
.formento-hero-panel { display: contents; }

/* blocco data / luogo con icone giallo */
.formento-info {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.formento-info-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.formento-info-row .icon {
    width: 38px;
    min-width: 38px;
    height: auto;
}

.formento-info-row .text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--formento-white);
}

.formento-hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Sezione intro ---- */
.formento-intro {
    text-align: center;
    max-width: 760px;
    margin: 2.5rem auto 1.5rem auto;
}

    .formento-intro .lead {
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 36px;
        line-height: 40px;
        margin-bottom: 1.1rem;
    }

.formento-intro .regular {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 28px;
    opacity: 0.92;
}

.formento-signature {
    margin-top: 1.4rem;
}

.formento-signature .name {
    font-weight: 700;
    font-style: italic;
}

/* ---- Form RSVP ---- */
.fields .form-control {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 6px;
    color: #222;
    padding: 0.7rem 1rem;
    margin-bottom: 0.8rem;
}

.fields .form-control::placeholder { color: #6b6b6b; text-transform: uppercase; font-size: 0.85rem; }

/* radio SI / NO come scelte */
.rbtnList { display: flex; flex-direction: column; gap: 0.6rem; }
.rbtnList label { font-family: var(--font-body); cursor: pointer; }

/* RSVP — due pulsanti d'azione SI / NO (come da mockup), conferma in popin */
.rsvp-cta-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1.5rem auto 0 auto;
    text-align: center;
}
/* SI = pieno giallo (.formento-cta di default). NO = contorno. */
.rsvp-no { background-color: transparent; color: var(--formento-yellow); }
.rsvp-no:hover { background-color: var(--formento-yellow); color: var(--formento-white); }

/* RSVP — popin di conferma */
.modal-content.rsvp-modal {
    background-color: var(--formento-green-dark);
    color: var(--formento-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.rsvp-modal .modal-header { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.rsvp-modal .modal-footer { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.rsvp-modal .modal-title { font-family: var(--font-title); text-transform: uppercase; letter-spacing: 0.02em; }
.btn-validate-sm { padding: 0.5rem 1.6rem; font-size: 0.92rem; }

/* RSVP — scelta del numero di accompagnatori (opzioni visibili, non un menu a tendina) */
.rsvp-guests { max-width: 460px; margin: 0.5rem auto 0 auto; text-align: left; }
.rsvp-guests-label { display: block; margin-bottom: 0.75rem; font-weight: 700; text-align: center; }
.rsvp-guests-options { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.rsvp-guests-options li {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 0.65rem 0.95rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.rsvp-guests-options li:hover { border-color: var(--formento-yellow); background: rgba(255, 255, 255, 0.12); }
.rsvp-guests-options label { cursor: pointer; margin-left: 0.55rem; }
.rsvp-guests-options input[type="radio"] { cursor: pointer; accent-color: var(--formento-yellow); transform: translateY(1px); }

/* ---- CTA buttons (giallo, pill) ---- */
.btn-validate,
.formento-cta {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--formento-yellow);
    color: var(--formento-white);
    border: 2px solid var(--formento-yellow);
    border-radius: 999px;
    padding: 0.8rem 2.4rem;
    font-size: 1rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-validate:hover,
.formento-cta:hover {
    background-color: transparent;
    color: var(--formento-yellow);
}

.send-btn { margin-top: 1.5rem; text-align: center; }

/* confirmed RSVP answer pill */
.formento-rsvp-pill {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--formento-yellow);
    border: 0;
    color: white;
    width: 252px;
    height: 54px;
    border-radius: 100px;
    font-size: 21px;
    font-weight: 700;
}

.formento-rsvp-pill-decline {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 4px solid #D79B00;
    color: #D79B00;
    width: 282px;
    height: 54px;
    border-radius: 100px;
    font-size: 21px;
    font-weight: 700;
}

/* alert errori */
.alert-danger:empty { display: none; }
.alert-danger {
    background: rgba(255,255,255,0.12);
    border: 1px solid var(--formento-yellow);
    color: var(--formento-white);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
}

/* ---- Footer ---- */
footer {
    text-align: center;
    padding: 2rem 0 1rem 0;
}

footer .formento-logo { margin: 0 auto 0.8rem auto; max-width: 200px; }

footer p {
    font-size: 0.8rem;
    opacity: 0.75;
    margin: 0;
}

hr { border-color: rgba(255,255,255,0.2); }

/* ============================================================
   RTL — arabo (dir="rtl" impostato su <html> in Site.Master)
   ============================================================ */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .formento-info-row { flex-direction: row-reverse; }
html[dir="rtl"] .formento-intro { text-align: center; }
html[dir="rtl"] .fields .form-control { text-align: right; }

/* ---- Scroll hint chevron ---- */
.formento-scroll-hint {
    display: flex;
    justify-content: center;
    padding: 0.8rem 0 0.4rem;
    width: 100%;
}

.formento-scroll-hint::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--formento-yellow);
    border-bottom: 2px solid var(--formento-yellow);
    transform: rotate(45deg);
}
