:root {
    --ink: #17323e;
    --ink-soft: #46606d;
    --petrol: #1f5563;
    --petrol-deep: #163f4b;
    --accent: #d99a5b;
    --paper: #fbf9f4;
    --paper-dark: #f0ebe0;
    --line: #cfc7b6;
    --white: #ffffff;
    --err-ink: #8a2a22;
    --err-bg: #fbeceb;
    --warn-ink: #6b4b00;
    --warn-bg: #fbf1d3;
    --serif: Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; border-radius: 0 !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 19px;
    line-height: 1.6;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 16px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Testata */
.hero { background: var(--petrol-deep); color: var(--white); padding: 56px 0 60px; }
.hero .wrap { display: grid; gap: 32px; align-items: end; }
.hero-photo { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--petrol); margin: 0 auto; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 96px; color: var(--accent); background: var(--petrol);
}
.eyebrow {
    display: block; font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--accent); padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.28);
}
.hero h1 { font-family: var(--serif); font-size: 44px; line-height: 1.05; letter-spacing: -.01em; margin-bottom: 18px; }
.hero .subtitle { font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.35; color: #e3ecef; margin: 0; }

@media (min-width: 760px) {
    .hero .wrap { grid-template-columns: 320px 1fr; gap: 56px; }
    .hero-photo { margin: 0; }
    .hero h1 { font-size: 68px; }
    .hero .subtitle { font-size: 30px; }
}

/* Dati essenziali */
.facts { background: var(--paper-dark); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; padding-top: 0; padding-bottom: 0; }
.fact { padding: 20px 0; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; }
.fact .label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--petrol); margin-bottom: 2px; }
.fact .value { font-family: var(--serif); font-size: 23px; line-height: 1.3; }
@media (min-width: 760px) {
    .facts .wrap { grid-template-columns: 1.3fr 1fr 1fr; }
    .fact { padding: 26px 28px; border-top: 0; border-left: 1px solid var(--line); }
    .fact:first-child { padding-left: 0; border-left: 0; }
}

/* Sezioni */
section { padding: 52px 0 0; }
section h2 {
    font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--petrol); border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: 24px;
}
.about p { font-family: var(--serif); font-size: 23px; line-height: 1.55; max-width: 720px; color: var(--ink); }
.about p + p { font-size: 19px; font-family: var(--sans); color: var(--ink-soft); }

/* Form */
.form-card { background: var(--white); border: 1px solid var(--ink); padding: 32px 24px 28px; max-width: 720px; }
label { display: block; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 22px 0 8px; }
label:first-of-type { margin-top: 0; }
input[type=text], input[type=email], input[type=tel], select {
    width: 100%; padding: 14px 14px; font-size: 19px; font-family: var(--sans);
    border: 1px solid var(--ink); background: var(--white); color: var(--ink); appearance: none; -webkit-appearance: none;
}
select {
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
    background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px;
}
input:focus, select:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.check { display: flex; gap: 14px; align-items: flex-start; margin: 26px 0; }
.check input { width: 26px; height: 26px; margin-top: 2px; flex: none; accent-color: var(--petrol); }
.check label { margin: 0; font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1.5; }
.total {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
    padding: 16px 0; margin: 28px 0 22px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.total span { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.error { display: none; margin: 16px 0; padding: 14px 16px; background: var(--err-bg); color: var(--err-ink); border: 1px solid var(--err-ink); font-size: 17px; }
.soldout { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-ink); padding: 20px; font-size: 20px; }
.hp { position: absolute; left: -9999px; }

/* Informazioni pratiche */
.info-list { list-style: none; padding: 0; margin: 0; max-width: 720px; }
.info-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
.info-list li:first-child { padding-top: 0; }

/* Sponsor */
.sponsors { padding-bottom: 8px; }
.sponsor-row { display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: center; padding: 6px 0; }
.sponsor-row img { max-height: 64px; max-width: 170px; width: auto; height: auto; object-fit: contain; }

footer { margin-top: 64px; padding: 28px 0 36px; background: var(--ink); color: #c9d6dc; font-size: 15px; letter-spacing: .04em; }
footer a { color: var(--accent); }

/* Colonna centrale unica per il contenuto */
main.wrap { max-width: 720px; }
section h2 { text-align: center; }
.about p, .info-list, .form-card { max-width: none; margin-left: auto; margin-right: auto; }
.about p { text-align: center; }
.info-list li { text-align: center; }
.sponsor-row { justify-content: center; }
.total { text-align: left; }
section p[style] { max-width: none !important; text-align: center; }

/* Foto quadrata e loghi a dimensione fissa */
.hero-photo { aspect-ratio: 1 / 1; }
.sponsor-row { gap: 28px 48px; justify-content: center; }
.sponsor-row img { width: 150px; height: 150px; max-width: 150px; max-height: 150px; object-fit: contain; }

.sponsors { border-top: 2px solid var(--ink); margin-top: 52px; padding-top: 32px; }
