@import url("https://fonts.bunny.net/css?family=figtree:400,500,600,700,800&display=swap");

:root {
    --primary: #1d4ed8;
    --primary-hover: #173b8f;
    --primary-soft: #bfdbfe;

    --bg-main: #eff6ff;
    --bg-secondary: #dbeafe;
    --bg-card: #ffffff;
    --bg-alt: #d8ad4a;

    --text-main: #191d2f;
    --text-secondary: #071a3d;
    --text-muted: #626569;
    --text-disabled: #8c8c8c;
    --text-white: #ffffff;

    --border-light: #ded4c2;
    --border-grey: #dddddd;
    --radius-small: 6px;
    --radius-big: 12px;

    --font-base: "Figtree", sans-serif;
}

.checkout-logo { display:block; width:180px; margin:0 auto 12px; }
.checkout-logo img { width:100%; height:110px; object-fit:contain; }
.checkout-intro { color:#64748b; margin-top:8px; }
.checkout-body { background:linear-gradient(145deg,#eff6ff,#fff 55%,#dbeafe); }
.checkout-wrapper { border-radius:24px; box-shadow:0 22px 60px rgba(7,26,61,.12); }

/* Backgrounds */

.bg-primary-hover {
    background-color: var(--primary-hover);
}

.bg-main {
    background-color: var(--bg-main);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.bg-card {
    background-color: var(--bg-card);
}

.bg-alt {
    background-color: var(--bg-card);
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

/* Rimuove lo stile di default dei menu a tendina su tutti i browser */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Colore di sfondo base */
    background-color: #ffffff;

    /* Aggiunge una freccina personalizzata moderna e pulita tramite SVG */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2em;

    /* Fa spazio al testo per non sovrapporsi alla freccia */
    padding-right: 2.5rem !important;
}

/* Opzionale: stile al passaggio del mouse o quando cliccato */
select:focus {
    outline: none;
    border-color: var(--text-secondary);
    box-shadow: 0 0 0 1px var(--text-secondary);
}

* {
    box-sizing: border-box;
}

/* Tipografia */
h1 {
    font-size: 54px;
    line-height: 1.15;
    font-weight: 700;
}

h2 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
}

h3 {
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
}

h4 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
}

h5 {
    font-size: 26px;
    line-height: 1.4;
    font-weight: 500;
}

h6 {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 500;
}

p {
    font-size: 21px;
    line-height: 1.6;
    font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    font-family: var(--font-base);
}

ol,
ul {
    margin-block-start: 24px;
    padding-inline-start: 20px;
}

li {
    font-weight: 300;
}

input,
select {
    border: solid 1px var(--border-grey);
    border-radius: var(--radius-small);
    padding: 9px;
    font-size: 20px;
    background-color: var(--bg-card);
    font-family: var(--font-base);
    color: var(--text-disabled);
}

label {
    display: block;
}

/* Tipografia */
.btn {
    display: inline-block;
    text-align: center;
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 34px;
    background-color: var(--primary);
    color: var(--text-white);
    border: solid 1px var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-hover);
    border: solid 1px var(--primary-hover);
}

.btn-2 {
    display: inline-block;
    text-align: center;
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 34px;
    background-color: white;
    color: var(--bg-secondary);
    border: solid 1px white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-2:hover {
    background: none;
    color: white;
}

.grey-btn {
    display: inline-block;
    text-align: center;
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 34px;
    background-color: var(--text-disabled);
    color: var(--text-white);
    border: solid 1px var(--text-disabled);
    transition: all 0.3s ease;
    cursor: pointer;
}

.remove-btn {
    margin-left: 20px;
    display: inline-block;
    text-align: center;
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 20px;
    background-color: #4f4f4f1a;
    color: #4f4f4f;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.remove-btn:hover {
    color: white;
    background-color: #4f4f4f;
    transform: scale(1.06);
}

.hyperlink {
    text-decoration: none;
    color: var(--primary-hover);
    font-weight: 300;
    font-family: var(--font-base);
}

.hyperlink:hover {
    text-decoration: underline;
}

.hero-height {
    min-height: 80vh;
}

/* margini */

.top-margin-small {
    margin-top: 0.5rem;
}

.top-margin-mid {
    margin-top: 1rem;
}

.top-margin-large {
    margin-top: 1.5rem;
}

.top-margin-xl {
    margin-top: 2.5rem;
}

.top-margin {
    margin-top: 4rem;
}

/* STACK SYSTEM */

.stack-small > * + * {
    margin-top: 0.5rem;
}

.stack-mid > * + * {
    margin-top: 1rem;
}

.stack-large > * + * {
    margin-top: 1.5rem;
}

.stack-xl > * + * {
    margin-top: 2.5rem;
}

.stack-xxl > * + * {
    margin-top: 4rem;
}

.light-color {
    color: var(--text-white);
}

.primary-color {
    color: var(--primary);
}

.center-text {
    text-align: center;
}

.center-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.fullwidth {
    width: 100%;
}

section {
    padding: 110px 12% 95px 12%;
}

/* Homepage */

.topbar {
    background-color: var(--text-secondary);
    min-height: 50px;
}

.home-hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.9)),
        url(images/hero.JPG);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
}

/* Countdown */
.countdown {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.time-box {
    min-width: 90px;
    border-radius: 14px;
    color: var(--text-white);
    text-align: center;
}

.time-box h2 {
    font-size: 56px;
}

.time-box span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.time-box small {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    color: var(--primary);
}

.dark-bg {
    background-color: var(--text-secondary);
}

.card {
    background-color: var(--bg-card);
    color: var(--light-text-color);
    padding: 45px;
    border-bottom: solid 7px var(--primary);
    border-right: solid 7px var(--primary);
}

.footer a {
    margin-bottom: 20px;
    color: var(--bg-alt);
    text-decoration: none;
}

.standard-lateral-padding {
    padding: 0px 12% 0px 12%;
}

.spunte-privacy {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

/* ADMIN */

.grid-8 {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr 1fr 1fr 1.6fr 1fr 1fr;
    gap: 15px;
}

.lucide-icon {
    transition: all 0.3s ease;
}

.lucide-icon:hover {
    transform: translateY(-1px);
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

/* Checkout */

.checkout-body {
    padding: 2.5rem;
}

.checkout-wrapper {
    max-width: 1200px;
    padding: 2.5rem;
    border-radius: var(--radius-big);
    background-color: var(--bg-card);
}

.checkout-narrow {
    max-width: 760px;
    width: 100%;
}

.checkout-kicker {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.checkout-summary {
    padding: 1.5rem;
    border-radius: var(--radius-small);
    background-color: var(--bg-main);
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-main);
}

.checkout-summary-row strong {
    font-weight: 700;
}

.checkout-summary-total {
    padding-top: 1rem;
    border-top: solid 1px var(--border-light);
    font-size: 28px;
}

.stripe-payment-box {
    padding: 1.5rem;
    border: solid 1px var(--border-light);
    border-radius: var(--radius-small);
    background-color: var(--bg-card);
}

.payment-message {
    padding: 1rem;
    border-radius: var(--radius-small);
    background-color: var(--bg-main);
    color: var(--primary-hover);
    font-weight: 500;
}

.btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.box-associazione {
    padding: 1.5rem;
    border-radius: var(--radius-small);
    background-color: var(--bg-main);
    border: solid 1px var(--border-light);
}

.label-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.label-box input {
    width: 100%;
    box-sizing: border-box;
}

.label-box label {
    font-size: 22px;
}

.gap-20 {
    gap: 25px;
}

.hidden {
    display: none;
}

.grid-span-all { grid-column: 1 / -1; }
.booking-page { max-width: 1080px; margin: 0 auto; padding: 40px 20px 80px; }
.booking-card { max-width: 620px; }
.booking-header, .booking-panel { background: #fff; border: 1px solid var(--border-light); border-radius: 18px; padding: 28px; }
.booking-header { display: flex; align-items: center; gap: 24px; }
.booking-header .checkout-logo { margin-right: auto; }
.booking-header .checkout-logo img { max-width: 130px; }
.status-badge { display: inline-flex; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; text-transform: uppercase; background: #f3f4f6; white-space: nowrap; }
.status-paid { background: #dcfce7; color: #166534; }
.status-awaiting_transfer { background: #fef3c7; color: #92400e; }
.status-transfer_review { background: #dbeafe; color: #1e40af; }
.status-expired, .status-cancelled { background: #fee2e2; color: #991b1b; }
.notice { padding: 14px 16px; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; }
.notice-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.notice-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.transfer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
.bank-details { display: grid; gap: 14px; margin: 0; }
.bank-details div { border-bottom: 1px solid #eee; padding-bottom: 10px; }
.bank-details dt { color: #667085; font-size: 13px; margin-bottom: 3px; }
.bank-details dd { margin: 0; overflow-wrap: anywhere; }
.copy-btn { border: 0; color: var(--primary); background: transparent; cursor: pointer; font-weight: 700; }
.qr-card { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; background: #f8fafc; border-radius: 14px; padding: 18px; }
.qr-card img { width: 260px; max-width: 100%; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.participant-list article { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid #eee; }
.participant-list article:last-child { border-bottom: 0; }
.participant-list small { display: block; color: #667085; margin-top: 4px; }
.ticket-pending { color: #667085; font-size: 13px; }
.btn-small { padding: 10px 14px; font-size: 13px; }

@media (max-width: 900px) {
    section {
        padding: 80px 6% 70px 6%;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 18px;
    }

    h5 {
        font-size: 16px;
    }

    h6 {
        font-size: 15px;
    }

    p {
        font-size: 15px;
    }

    small {
        font-size: 13px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .hero-title {
        font-size: 42px;
    }

    .countdown {
        gap: 10px;
    }

    .time-box {
        min-width: 70px;
        padding: 12px 8px;
    }

    .time-box span {
        font-size: 1.5rem;
    }

    .time-box h2 {
        font-size: 32px;
    }

    .card {
        padding: 30px;
    }

    .btn,
    .btn-2 {
        font-size: 15px;
    }

    .mobile-fullwidth {
        width: 100%;
    }

    .standard-lateral-padding {
        padding: 0px 6% 0px 6%;
    }

    .checkout-body {
        padding: 1rem;
    }

    .checkout-wrapper {
        padding: 1.5rem;
    }

    .booking-header { align-items: flex-start; flex-wrap: wrap; }
    .transfer-grid { grid-template-columns: 1fr; }
    .participant-list article { align-items: flex-start; flex-direction: column; }
}
