/* Ambronicafest — foglio di stile del sito pubblico.
   Deriva direttamente dalla locandina A3: stessi token, stessa cornice oro,
   stessa texture diagonale, stesse famiglie tipografiche e stessi ruoli.
   Nessun build step. */

:root {
    /* Token identici alla locandina */
    --gold: #F2A93B;
    --gold-deep: #D9891A;
    --gold-pale: #F7CE7E;
    --ink: #0B0B0C;
    --ink-2: #141416;
    --cream: #F6EFE2;
    --cream-dim: #C9BFAE;

    --danger: #d9534f;
    --success: #7fb069;

    /* Ruoli tipografici, come sulla locandina */
    --display: 'Anton', 'Arial Narrow', sans-serif;      /* titoli */
    --label: 'Bebas Neue', 'Arial Narrow', sans-serif;   /* etichette, date */
    --serif: 'Cinzel', Georgia, serif;                   /* claim, motto */
    --body: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--cream);
    font-family: var(--body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;

    /* Fondo della locandina: due aloni radiali sopra l'inchiostro */
    background:
        radial-gradient(ellipse 120% 45% at 50% 0%, #24211d 0%, rgba(0, 0, 0, 0) 60%),
        radial-gradient(ellipse 120% 40% at 50% 100%, #201d19 0%, rgba(0, 0, 0, 0) 60%),
        var(--ink);
    background-attachment: fixed;
}

/* Texture diagonale della locandina, su tutta la pagina */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(-45deg,
        rgba(242, 169, 59, .030) 0 2px,
        rgba(0, 0, 0, 0) 2px 9px);
    pointer-events: none;
    z-index: 1;
}

body > * { position: relative; z-index: 2; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-pale); }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Intestazione ---------- */

.site-head {
    border-bottom: 1px solid rgba(242, 169, 59, .28);
    padding: .9rem 0;
    position: sticky;
    top: 0;
    background: rgba(11, 11, 12, .94);
    backdrop-filter: blur(8px);
    z-index: 60;
}

.site-head .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    font-family: var(--display);
    font-size: 1.2rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}

.site-nav {
    display: flex;
    gap: 1.4rem;
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 1.05rem;
}

.site-nav a { color: var(--cream-dim); }
.site-nav a:hover { color: var(--gold); }

/* ---------- Hero: la locandina che diventa pagina ---------- */

.hero { padding: 2.5rem 0 3rem; }

/* Cornice oro doppia della locandina */
.plate {
    position: relative;
    border: 3px solid var(--gold);
    padding: 3rem 2rem 2.8rem;
    text-align: center;
    background:
        radial-gradient(ellipse 90% 55% at 50% 34%, rgba(50, 42, 30, .85) 0%, rgba(0, 0, 0, 0) 70%),
        var(--ink-2);
}

.plate::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(242, 169, 59, .5);
    pointer-events: none;
}

/* Squadrette agli angoli, come sulla locandina */
.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--gold);
    pointer-events: none;
    z-index: 3;
}

.corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }

.plate > *:not(.corner) { position: relative; z-index: 2; }

.eyebrow {
    font-family: var(--label);
    font-size: 1rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin: 0 0 1.1rem;
}

.logo {
    display: block;
    width: clamp(84px, 14vw, 120px);
    height: auto;
    margin: 0 auto 1.4rem;
}

/* Targhetta "Motoraduno" sopra il titolo */
.tab {
    display: inline-block;
    background: linear-gradient(180deg, var(--gold-pale), var(--gold-deep));
    color: var(--ink);
    font-family: var(--label);
    font-size: clamp(1rem, 3vw, 1.4rem);
    letter-spacing: .34em;
    text-transform: uppercase;
    padding: .3rem 2rem .25rem 2.2rem;
    margin: 0 0 .5rem;
    clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
}

.hero h1 {
    font-family: var(--display);
    font-size: clamp(2.6rem, 12.5vw, 7.4rem);
    line-height: .92;
    letter-spacing: .005em;
    text-transform: uppercase;
    margin: 0;

    /* Sul web il gradiente su testo e' sicuro: il problema del
       background-clip riguardava solo l'export PDF della locandina. */
    background: linear-gradient(178deg, var(--gold-pale) 0%, var(--gold) 42%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Moto estratta dalla locandina, gia' con i raggi */
.moto {
    display: block;
    width: min(660px, 100%);
    height: auto;
    margin: -.5rem auto .8rem;
}

.claim {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1rem, 3vw, 1.5rem);
    letter-spacing: .04em;
    color: var(--cream);
    margin: 0 0 .7rem;
}

.subclaim {
    font-family: var(--label);
    font-size: clamp(.9rem, 2.4vw, 1.1rem);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin: 0 0 1.8rem;
}

.subclaim strong { color: var(--gold); font-weight: 400; }

.sep { color: var(--gold-deep); }

.motto {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1rem, 3vw, 1.5rem);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 2.5rem 0 .5rem;
}

/* ---------- Countdown ---------- */

.countdown {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin: 2rem 0 2.2rem;
    flex-wrap: wrap;
}

.countdown div {
    min-width: 84px;
    padding: .8rem .5rem;
    border: 1px solid rgba(242, 169, 59, .45);
    background: rgba(11, 11, 12, .55);
}

.countdown strong {
    display: block;
    font-family: var(--display);
    font-size: 2.1rem;
    line-height: 1;
    color: var(--gold);
}

.countdown span {
    font-family: var(--label);
    font-size: .88rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cream-dim);
}

/* ---------- Sezioni ---------- */

section { padding: 3.5rem 0; }

section + section { border-top: 1px solid rgba(242, 169, 59, .18); }

h2 {
    font-family: var(--display);
    font-size: clamp(1.7rem, 5.5vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--gold);
    margin: 0 0 .4rem;
}

/* Filetto oro sotto i titoli, come i separatori della locandina */
h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    background: var(--gold-deep);
    margin: .7rem 0 1.6rem;
}

.centered { text-align: center; }
.centered h2::after { margin-left: auto; margin-right: auto; }

h3 {
    font-family: var(--label);
    font-size: 1.35rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--gold-pale);
    margin: 0 0 .5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

/* Card come i riquadri 3+3 della locandina */
.card {
    background: rgba(20, 20, 22, .82);
    border: 1px solid rgba(242, 169, 59, .38);
    padding: 1.5rem 1.3rem;
    text-align: center;
}

.card h3 { letter-spacing: .12em; }

.card p {
    margin: 0;
    color: var(--cream-dim);
    font-size: .98rem;
}

/* Blocco beneficenza, incorniciato come sulla locandina */
.charity {
    border: 2px solid var(--gold);
    padding: 1.6rem 2rem;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 100% at 50% 50%, rgba(60, 48, 26, .55) 0%, rgba(0, 0, 0, 0) 75%),
        rgba(20, 20, 22, .8);
}

.charity-eyebrow {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(.85rem, 2.2vw, 1.05rem);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin: 0 0 .5rem;
}

.charity-title {
    font-family: var(--display);
    font-size: clamp(1.5rem, 5.5vw, 2.6rem);
    letter-spacing: .01em;
    text-transform: uppercase;
    margin: 0 0 .5rem;
    background: linear-gradient(178deg, var(--gold-pale) 0%, var(--gold) 50%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.charity-note {
    font-family: var(--body);
    font-size: .98rem;
    color: var(--cream-dim);
    margin: 0;
}

/* Icone delle sei voci */
.icon {
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 auto .9rem;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Fascia data, come sulla locandina */
.dateband {
    background: linear-gradient(180deg, var(--gold-pale) 0%, var(--gold) 45%, var(--gold-deep) 100%);
    color: var(--ink);
    text-align: center;
    padding: 1rem 1rem 1.1rem;
}

.dateband-eyebrow {
    font-family: var(--label);
    font-size: clamp(.8rem, 2vw, .95rem);
    letter-spacing: .38em;
    text-transform: uppercase;
    margin: 0 0 .1rem;
    opacity: .78;
}

.dateband-main {
    font-family: var(--display);
    font-size: clamp(1.4rem, 6.2vw, 3rem);
    line-height: 1;
    letter-spacing: .005em;
    text-transform: uppercase;
    margin: 0;
}

.address {
    font-family: var(--label);
    font-size: clamp(.9rem, 2.4vw, 1.1rem);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cream-dim);
    text-align: center;
    margin: 1.3rem 0 0;
}

/* Contatti, come sulla locandina */
.contacts { margin-top: .5rem; }

.contacts .who {
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--gold);
    margin: 0 0 .1rem;
}

.contacts .role {
    font-family: var(--label);
    font-size: .9rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin: 0 0 .3rem;
}

.contacts .tel {
    font-family: var(--label);
    font-size: 1.25rem;
    letter-spacing: .08em;
    margin: 0;
}

.contacts .tel a { color: var(--cream); }
.contacts .tel a:hover { color: var(--gold); }

.grid.three { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.no-rule + section { border-top: 0; }

/* ---------- Form ---------- */

.steps {
    display: flex;
    gap: .5rem;
    margin-bottom: 2rem;
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .98rem;
    flex-wrap: wrap;
}

.steps span {
    padding: .3rem .9rem;
    border: 1px solid rgba(242, 169, 59, .3);
    color: var(--cream-dim);
}

.steps span.on { border-color: var(--gold); color: var(--gold); }
.steps span.done { border-color: var(--gold-deep); color: var(--gold-deep); }

label {
    display: block;
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .95rem;
    color: var(--gold-pale);
    margin-bottom: .3rem;
}

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], input[type=file], select, textarea {
    width: 100%;
    padding: .7rem .85rem;
    background: rgba(11, 11, 12, .75);
    border: 1px solid rgba(242, 169, 59, .3);
    color: var(--cream);
    font-family: var(--body);
    font-size: 1.05rem;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    outline: none;
}

.field { margin-bottom: 1.2rem; }

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.check {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.check input { margin-top: .4rem; flex-shrink: 0; width: auto; }

.check label {
    text-transform: none;
    letter-spacing: .01em;
    font-family: var(--body);
    font-size: 1rem;
    color: var(--cream);
    margin: 0;
}

.hint {
    color: var(--cream-dim);
    font-size: .92rem;
    margin-top: .3rem;
}

.error {
    color: var(--danger);
    font-size: .95rem;
    margin-top: .3rem;
}

.alert {
    padding: .9rem 1.1rem;
    border-left: 3px solid var(--gold);
    background: rgba(20, 20, 22, .85);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.alert.bad { border-left-color: var(--danger); }
.alert.good { border-left-color: var(--success); }

/* ---------- Pulsanti ---------- */

.btn {
    display: inline-block;
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 1.15rem;
    padding: .7rem 2rem;
    background: var(--gold);
    color: var(--ink);
    border: 1px solid var(--gold);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.btn:hover { background: var(--gold-pale); color: var(--ink); }

.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(242, 169, 59, .14); color: var(--gold-pale); }

.btn:disabled { opacity: .45; cursor: not-allowed; }

.actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ---------- Partecipanti ---------- */

.attendee {
    border: 1px solid rgba(242, 169, 59, .32);
    background: rgba(20, 20, 22, .8);
    padding: 1.3rem;
    margin-bottom: 1rem;
}

.attendee header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(242, 169, 59, .2);
    padding-bottom: .6rem;
}

.attendee header strong {
    font-family: var(--label);
    font-weight: 400;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--gold);
}

.remove {
    background: none;
    border: none;
    color: var(--cream-dim);
    cursor: pointer;
    font-size: .95rem;
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.remove:hover { color: var(--danger); }

/* ---------- Totale ---------- */

.total {
    border-top: 2px solid var(--gold);
    padding-top: 1rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.total span {
    font-family: var(--label);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--gold-pale);
}

.total strong {
    font-family: var(--display);
    font-size: 2.2rem;
    color: var(--gold);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(242, 169, 59, .16);
    font-size: 1rem;
}

.summary-line span:last-child {
    color: var(--gold-pale);
    white-space: nowrap;
}

/* ---------- Codice iscrizione ---------- */

.code-box {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--gold);
    background: rgba(20, 20, 22, .85);
    margin: 1.5rem 0;
    position: relative;
}

.code-box::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(242, 169, 59, .5);
    pointer-events: none;
}

.code-box strong {
    display: block;
    font-family: var(--display);
    font-size: 2.6rem;
    letter-spacing: .12em;
    color: var(--gold);
}

.code-box .hint {
    font-family: var(--label);
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* ---------- Area utente ---------- */

.panel {
    background: rgba(20, 20, 22, .82);
    border: 1px solid rgba(242, 169, 59, .3);
    padding: 1.6rem;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .95rem;
    padding: .2rem .8rem;
    border: 1px solid currentColor;
}

.badge.pending { color: var(--gold); }
.badge.confirmed { color: var(--success); }
.badge.cancelled { color: var(--danger); }
.badge.arrived { color: var(--gold-pale); }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}

.photo-grid figure {
    margin: 0;
    border: 1px solid rgba(242, 169, 59, .3);
}

.photo-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.photo-grid figcaption {
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .82rem;
    padding: .3rem .5rem;
    color: var(--cream-dim);
}

.comm {
    border-left: 3px solid var(--gold-deep);
    padding: .3rem 0 .3rem 1.1rem;
    margin-bottom: 1.6rem;
}

.comm time {
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .9rem;
    color: var(--cream-dim);
}

/* ---------- Piè di pagina ---------- */

.site-foot {
    border-top: 1px solid rgba(242, 169, 59, .25);
    padding: 2.5rem 0 3.5rem;
    color: var(--cream-dim);
    font-size: .95rem;
    text-align: center;
}

.site-foot a { color: var(--gold-pale); }

.site-foot .motto { margin-top: 1.5rem; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    body { font-size: 17px; }
    .row { grid-template-columns: 1fr; }
    .site-head .wrap { flex-direction: column; gap: .5rem; }
    .site-nav { gap: 1rem; font-size: .98rem; }
    .plate { padding: 2.2rem 1rem 2rem; }
    .corner { width: 20px; height: 20px; }
    .corner.tl, .corner.tr { top: 14px; }
    .corner.bl, .corner.br { bottom: 14px; }
    .corner.tl, .corner.bl { left: 14px; }
    .corner.tr, .corner.br { right: 14px; }
    .tab { letter-spacing: .22em; padding: .25rem 1.2rem; }
    .countdown { gap: .35rem; }
    .countdown div { min-width: 0; flex: 1 1 0; padding: .6rem .2rem; }
    .countdown strong { font-size: 1.7rem; }
    .countdown span { font-size: .72rem; letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
/* ---------- Schede menù ----------
   Da aggiungere in fondo a public/css/site.css */

.menu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.menu-card {
    background: rgba(20, 20, 22, .82);
    border: 1px solid rgba(242, 169, 59, .38);
    padding: 1.2rem;
}

.menu-card h4 {
    font-family: var(--label);
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold);
    margin: 0 0 .4rem;
}

.menu-desc {
    color: var(--cream-dim);
    font-size: .95rem;
    margin: 0 0 .8rem;
}

.courses {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.courses li {
    padding: .5rem 0;
    border-bottom: 1px solid rgba(242, 169, 59, .16);
}

.courses li:last-child { border-bottom: 0; }

.courses strong {
    display: block;
    font-family: var(--label);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-pale);
}

.courses span {
    display: block;
    color: var(--cream-dim);
    font-size: .93rem;
    line-height: 1.4;
}

.menu-prices {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    border-top: 1px solid rgba(242, 169, 59, .28);
    padding-top: .8rem;
}

.price-tag {
    font-family: var(--label);
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cream-dim);
    border: 1px solid rgba(242, 169, 59, .3);
    padding: .25rem .6rem;
}

.price-tag strong {
    color: var(--gold);
    font-weight: 400;
    margin-left: .3rem;
}

/* Riepilogo del menù scelto, dentro la scheda partecipante */
.chosen-menu {
    background: rgba(11, 11, 12, .6);
    border-left: 3px solid var(--gold-deep);
    padding: .6rem .8rem;
    margin-top: -.6rem;
    margin-bottom: 1rem;
    font-size: .92rem;
    color: var(--cream-dim);
}

.chosen-menu strong {
    color: var(--gold-pale);
    font-family: var(--label);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Blocco "cosa comprende" nell'area utente */
.menu-recap {
    margin-top: .5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(242, 169, 59, .3);
}

.menu-recap li {
    color: var(--cream-dim);
    font-size: .9rem;
    padding: .15rem 0;
    list-style: none;
}

.menu-recap li strong {
    color: var(--gold-pale);
    font-weight: 500;
}

details.menu-toggle summary {
    cursor: pointer;
    font-family: var(--label);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .9rem;
    color: var(--gold);
    padding: .4rem 0;
    list-style: none;
}

details.menu-toggle summary::-webkit-details-marker { display: none; }

details.menu-toggle summary::before {
    content: "▸ ";
    display: inline-block;
    transition: transform .15s ease;
}

details.menu-toggle[open] summary::before { content: "▾ "; }

/* Nella home le schede stanno in una sezione centrata:
   i titoli restano centrati, le portate si leggono meglio a sinistra. */
.centered .menu-card { text-align: left; }
.centered .menu-card h4 { text-align: center; }
.centered .menu-prices { justify-content: center; }
