/* I Randagi — collettivo teatrale */
:root {
  --carta: #F6F1E8;
  --carta-2: #EFE8DC;
  --ink: #141312;
  --ink-2: #3D3731;
  --muted: #6B6258;
  --line: #D9D0C2;
  --line-2: #B9AE9E;
  --rosso: #B8322A;
  --rosso-chiaro: #E8685B;
  --dark-line: #2E2B28;
  --dark-muted: #A69D90;
  --dark-soft: #CFC7BA;

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--carta);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rosso); }
:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1; letter-spacing: 0.005em; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--carta); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section + .section--line, .section--line { border-top: 1px solid var(--line); }
.section--soft { background: var(--carta-2); border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--carta); }
.section--dark a:hover { color: var(--rosso-chiaro); }

/* ---------- testo ---------- */
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rosso); margin-bottom: 18px; }
.section--dark .eyebrow, .hero-photo .eyebrow { color: var(--rosso-chiaro); }
.label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.section--dark .label { color: var(--dark-muted); }
.display { font-size: clamp(56px, 9vw, 132px); line-height: 0.92; }
.h2 { font-size: clamp(38px, 5vw, 56px); color: var(--ink-2); }
.h3 { font-size: clamp(32px, 3.6vw, 48px); }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; }
.soft { color: var(--ink-2); }
.red { color: var(--rosso); }
.mono { font-family: var(--f-mono); font-size: 13px; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 32px; }
.more { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rosso); }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 26px; font-family: var(--f-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--red { background: var(--rosso); color: #fff; }
.btn--red:hover { background: #9C2921; color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--carta); }
.btn--ink { background: var(--ink); color: var(--carta); }
.btn--ink:hover { background: var(--rosso); color: #fff; }
.btn--paper { background: var(--carta); color: var(--ink); }
.btn--paper:hover { background: var(--rosso-chiaro); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--carta); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; }
.brand span { font-family: var(--f-display); font-size: 26px; letter-spacing: 0.04em; line-height: 1; }
.brand:hover { color: var(--ink); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav a { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 0; display: inline-block; }
.nav a[aria-current="page"] { color: var(--rosso); }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 1px solid var(--ink); color: var(--ink); min-height: 44px; padding: 0 14px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.menu-btn .bars { width: 18px; height: 12px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after, .menu-btn .bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-btn .bars::before { top: 0; } .menu-btn .bars span { top: 5px; } .menu-btn .bars::after { bottom: 0; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .site-header .bar { min-height: 64px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 22px; }
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 64px 0 0 0; background: var(--carta); border-top: 1px solid var(--line); padding: 24px var(--gutter) 40px; overflow-y: auto; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 18px 0; font-family: var(--f-display); font-size: 34px; letter-spacing: 0.01em; text-transform: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.site-footer .bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; }
.site-footer .brand { color: var(--muted); }
.site-footer .brand img { width: 40px; height: 40px; }
.site-footer .brand span { font-size: 20px; color: var(--ink); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer .links a { color: var(--ink); }

/* ---------- home ---------- */
.home-hero { text-align: center; padding-top: clamp(48px, 7vw, 88px); }
.home-hero h1 img { width: auto; height: clamp(260px, 32vw, 420px); margin: 0 auto; }
.home-intro { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; padding-block: clamp(48px, 6vw, 72px) var(--section-y); }
.home-intro .lead { margin-top: 28px; max-width: 34ch; }
.treccani { border-top: 2px solid var(--rosso); padding-top: 18px; }
.treccani .word { font-family: var(--f-display); font-size: 36px; margin-top: 10px; }
.treccani .word i { font-family: var(--f-body); font-size: 16px; color: var(--muted); }
.treccani p { margin-top: 10px; font-size: 18px; }
.treccani small { display: block; margin-top: 14px; font-size: 14px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--carta-2); border: 1px solid var(--line); transition: border-color .15s; }
.card:hover { color: inherit; border-color: var(--ink); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card .body { padding: clamp(24px, 3vw, 32px); }
.card h2 { color: var(--rosso); font-size: clamp(34px, 3.6vw, 44px); margin-top: 10px; }
.card p { margin-top: 14px; color: var(--ink-2); }
.card .go { margin-top: 22px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.card:hover .go { color: var(--rosso); }

.dates { border-top: 1px solid var(--line); }
.date-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr); gap: 6px 32px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.date-row .d { font-family: var(--f-display); font-size: 28px; color: var(--rosso); }
.date-row .t { font-size: 21px; font-weight: 500; }
.date-row .p { color: var(--muted); }

.insta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.insta .btn svg { width: 20px; height: 20px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta .text { display: flex; align-items: center; gap: 28px; flex: 1 1 560px; }
.cta img { width: 128px; height: 128px; flex: none; }
.cta h2 { color: var(--rosso-chiaro); font-size: clamp(40px, 5.4vw, 64px); }
.cta p { margin-top: 14px; font-size: 19px; }

@media (max-width: 860px) {
  .home-intro, .cards { grid-template-columns: 1fr; }
  .date-row { grid-template-columns: 1fr; padding: 18px 0; }
  .date-row .d { font-size: 24px; }
  .cta .text { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta img { width: 88px; height: 88px; }
}

/* ---------- intestazioni di pagina ---------- */
.page-head { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.page-head .lead { color: var(--ink-2); }
@media (max-width: 860px) { .page-head { grid-template-columns: 1fr; } }

/* ---------- chi siamo ---------- */
.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 20%; }
.figure figcaption { margin-top: 12px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.three .label { color: var(--rosso); }
.three p:not(.label) { margin-top: 10px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; }
.person { display: flex; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.person .ph { flex: 0 0 120px; height: 150px; border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--f-mono); font-size: 10px; color: var(--muted); }
.person h3 { color: var(--rosso); font-size: 30px; }
.person .label { color: var(--rosso); margin-top: 6px; }
.person p:last-child { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) {
  .three { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .figure img { aspect-ratio: 1 / 1; }
}
@media (max-width: 420px) { .person { flex-direction: column; } .person .ph { width: 120px; } }

/* ---------- performance ---------- */
.hero-photo { position: relative; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: flex-end; background: var(--ink); color: var(--carta); overflow: hidden; }
.hero-photo picture, .hero-photo picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 75%; background: linear-gradient(to top, rgba(20, 19, 18, 0.94), rgba(20, 19, 18, 0)); }
.hero-photo .wrap { position: relative; z-index: 1; padding-bottom: clamp(40px, 6vw, 64px); }
.hero-photo h1 { font-size: clamp(56px, 10vw, 148px); line-height: 0.9; max-width: 11ch; }
.hero-photo .tag { margin-top: 20px; font-size: clamp(20px, 2.4vw, 26px); font-style: italic; }

.synopsis { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px 64px; }
.synopsis .lead { margin-top: 16px; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.45; }
.synopsis .lead + p { margin-top: 22px; font-size: 18px; color: var(--ink-2); line-height: 1.65; }
.sheet { margin: 0; border-top: 2px solid var(--rosso); }
.sheet div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); flex: none; }
.sheet dd { margin: 0; text-align: right; }

.video { margin-top: 32px; aspect-ratio: 16 / 9; background: #1C1A19; border: 1px solid var(--dark-line); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.gallery { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.host { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.host h2 { color: var(--rosso); }
.host p { margin-top: 14px; font-size: 18px; }
@media (max-width: 860px) {
  .synopsis { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- teatro che viene da voi ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.pillars .label { color: var(--rosso); }
.pillars p:not(.label) { margin-top: 10px; }
.offer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; padding-block: 48px; border-top: 1px solid var(--line); }
.offer .visual { min-height: 280px; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--carta-2) 0 14px, #E7DFD0 14px 28px); display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.offer .visual--quote { background: none; border-color: var(--rosso); color: var(--rosso); font-family: var(--f-display); font-size: clamp(28px, 3vw, 36px); text-align: center; padding: 24px; }
.offer .label { color: var(--rosso); }
.offer h3 { margin-top: 12px; color: var(--ink-2); }
.offer h3.red { color: var(--rosso); }
.offer .by { margin-top: 6px; font-size: 15px; color: var(--muted); }
.offer .desc { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.offer .meta { margin-top: 18px; font-family: var(--f-mono); font-size: 13px; }
.offer ul { list-style: none; margin: 18px 0 0; padding: 0; }
.offer li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line-2); padding: 8px 14px; font-size: 14px; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; padding-block: 36px; }
  .offer .visual { min-height: 200px; }
}

/* ---------- moduli ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-content: start; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.field input, .field select, .field textarea { font: 16px/1.4 var(--f-body); letter-spacing: normal; text-transform: none; padding: 14px; border: 1px solid var(--line-2); background: var(--carta); color: var(--ink); border-radius: 0; width: 100%; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--rosso); outline-offset: 0; border-color: var(--rosso); }
.section--dark .field input, .section--dark .field select, .section--dark .field textarea { background: #1C1A19; border-color: #4A4540; color: var(--carta); }
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choices legend { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.choices label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); padding: 12px 16px; font-size: 15px; cursor: pointer; min-height: 48px; }
.choices label:has(input:checked) { border-color: var(--rosso); }
.choices input { accent-color: var(--rosso); width: 18px; height: 18px; margin: 0; }
.hidden { display: none; }
.request { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px 64px; }
.request h2 { color: var(--rosso-chiaro); }
.request p { margin-top: 16px; font-size: 18px; }
@media (max-width: 860px) {
  .form, .request { grid-template-columns: 1fr; }
}

/* ---------- calendario ---------- */
.month { font-size: 40px; color: var(--rosso); padding-bottom: 16px; border-bottom: 2px solid var(--rosso); }
.event { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px 40px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.event .day { font-family: var(--f-display); font-size: 56px; line-height: 1; color: var(--rosso); }
.event .day.tba { font-size: 40px; color: var(--muted); }
.event .title { margin-top: 6px; font-size: 26px; font-weight: 500; line-height: 1.25; }
.event .place { margin-top: 6px; color: var(--ink-2); }
.event .btn { min-height: 44px; padding: 10px 18px; font-size: 12px; }
.note { margin-top: 64px; padding: 32px; border: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.note .title { margin-top: 8px; font-size: 22px; font-weight: 500; }
@media (max-width: 760px) {
  .event { grid-template-columns: 72px minmax(0, 1fr); align-items: start; padding: 22px 0; }
  .event .day { font-size: 44px; }
  .event .day.tba { font-size: 30px; }
  .event .title { font-size: 21px; }
  .event > :last-child { grid-column: 2; justify-self: start; }
  .note { padding: 24px; }
}

/* ---------- contatti ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px 64px; padding-block: var(--section-y); }
.contact .lead { margin-top: 24px; color: var(--ink-2); }
.contact-list { margin-top: 40px; border-top: 1px solid var(--line); }
.contact-list a { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { font-size: 21px; font-weight: 500; word-break: break-word; }
.panel { background: var(--carta-2); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.thanks { text-align: center; padding-block: clamp(96px, 14vw, 160px); }
.thanks .lead { margin: 24px auto 0; max-width: 32ch; color: var(--ink-2); }
.thanks .btn { margin-top: 40px; }
.card img.pos-left { object-position: 30% 50%; }
@media (max-width: 760px) { .hero-photo picture img { object-position: 82% 45%; } }
.person img.ph { width: 120px; height: 150px; object-fit: cover; border: 0; display: block; }
