:root {
  /* Palette e font di marymount.it */
  --navy: #204660;        /* blu istituzionale (header, footer, bottoni, logo) */
  --navy-2: #17354a;      /* hover */
  --accent: #f36a55;      /* corallo: barra sopra i titoli */
  --gold: #c99f22;        /* filetti oro del logo */
  --gold-soft: #f4eada;   /* crema del logo */
  --olive: #737665;       /* grigio oliva (logo 95 anni) */
  --olive-soft: #ecece6;
  --cream: #f7f7f7;       /* sfondo sezioni chiare */
  --paper: #ffffff;
  --ink: #333333;         /* testo del sito */
  --muted: #666666;
  --line: #dddddd;
  --ok: #2e7d4f;
  --warn: #b7791f;
  --err: #b30000;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
  --serif: "Crimson Text", Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.5; font-size: 16px; }
a { color: var(--navy-2); }
h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h3 { font-family: var(--sans); font-weight: 600; color: var(--navy); line-height: 1.3; margin: 0 0 .5em; }
/* Barra corallo sopra i titoli, come su marymount.it (.barra-sopra) */
h1.bar::before, h2.bar::before { content: ""; display: block; width: 100px; height: 4px; background: var(--accent); margin-bottom: 15px; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.15); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand img { height: 72px; width: auto; display: block; }
.brand .brand-sub { font-family: var(--sans); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.75); border-left: 1px solid var(--gold); padding-left: 14px; line-height: 1.3; }
@media (max-width: 560px) { .topbar .wrap { min-height: 76px; } .brand img { height: 54px; } .brand .brand-sub { display: none; } }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 4px 12px; border-radius: var(--radius); cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; }
.lang-switch button[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--navy); }

.hero { background: var(--navy); color: #fff; padding: 64px 0 76px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold-soft); letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero .lead { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; color: #fff; margin: -4px 0 18px; line-height: 1.25; }
.hero p { max-width: 660px; color: rgba(255,255,255,.88); font-size: 1.05rem; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Buttons & form ---------- */
/* Bottoni come su marymount.it: maiuscolo, Work Sans 600, raggio 10px */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius); padding: 9px 20px; font: inherit; font-weight: 600; font-size: .875rem; text-transform: uppercase; letter-spacing: .3px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn-gold { background: #fff; color: var(--navy); border-color: #fff; }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: #fff; }
.btn-light { background: var(--paper); color: var(--navy); border-color: var(--line); }
.btn-light:hover { border-color: var(--navy); }
.btn-danger { background: transparent; color: var(--err); border-color: #e7b7b3; }
.btn-sm { padding: 5px 14px; font-size: .78rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field .hint { font-size: .8rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], input[type=search], select, textarea {
  font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; min-width: 0;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Public: positions & form ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--cream); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.positions { display: grid; gap: 14px; }
.position { padding: 20px 22px; }
.position-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.position h3 { margin: 0 0 4px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .75rem; padding: 3px 10px; border-radius: 6px; background: var(--olive-soft); color: var(--olive); font-weight: 600; }
.tag.navy { background: #e4ebf0; color: var(--navy); }
.position details { margin-top: 10px; }
.position summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: .9rem; }
.position .desc { white-space: pre-line; color: var(--ink); font-size: .95rem; margin-top: 10px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.form-card { padding: 28px; }
@media (max-width: 640px) { .form-card { padding: 20px 16px; } }
.form-section { border: 0; padding: 0; margin: 0 0 28px; }
.form-section legend { font-family: var(--serif); font-size: 1.55rem; color: var(--ink); font-weight: 700; margin-bottom: 14px; padding: 0; }
.pos-options { display: grid; gap: 8px; }
.pos-option { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; }
.pos-option:has(input:checked) { border-color: var(--navy); background: #eef3f6; }
.pos-option input { width: 18px; height: 18px; accent-color: var(--navy); }

.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px 16px; text-align: center; background: var(--cream); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--navy); background: #eef3f6; }
.drop strong { color: var(--navy); }
.drop .file-name { margin-top: 8px; font-weight: 600; color: var(--ok); word-break: break-all; }

.alert { padding: 12px 14px; border-radius: 8px; font-size: .92rem; margin-bottom: 16px; }
.alert.err { background: #fbeceb; color: var(--err); }
.alert.ok { background: #e8f4ec; color: var(--ok); }

.success { text-align: center; padding: 48px 24px; }
.success .check-icon { width: 64px; height: 64px; border-radius: 50%; background: #e8f4ec; color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; font-size: 2rem; }

footer.site { background: var(--navy); color: #fff; padding: 40px 0 28px; font-size: .875rem; }
footer.site a { color: #fff; }
footer.site .cols { display: grid; grid-template-columns: auto 1fr 1fr; gap: 24px 40px; align-items: start; }
footer.site .cols img { height: 82px; width: auto; }
footer.site h4 { font-family: var(--sans); font-size: .95rem; font-weight: 600; margin: 0 0 6px; }
footer.site p { margin: 0 0 4px; color: rgba(255,255,255,.85); }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.2); margin-top: 24px; padding-top: 16px; font-size: .8rem; color: rgba(255,255,255,.75); }
@media (max-width: 720px) { footer.site .cols { grid-template-columns: 1fr; } }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.15); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
