:root {
  --bg: #f5f1ea;
  --surface: #fffdf8;
  --surface-strong: #1f2933;
  --text: #1e242b;
  --muted: #637083;
  --line: #d9d2c6;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --warm: #b45309;
  --danger: #b91c1c;
  --shadow: 0 18px 42px rgba(30, 36, 43, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
}

.site-nav a:hover {
  background: #ece6db;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  min-height: 520px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .72)),
    url("../../images/immagine.jpg") center / cover no-repeat;
  color: #fff;
}

.hero-inner {
  padding: 88px 0 56px;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero .eyebrow { color: #f8d58a; }

h1, h2, h3 {
  line-height: 1.12;
  margin: 0 0 16px;
}

h1 { font-size: clamp(38px, 7vw, 72px); max-width: 720px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }

.lead {
  max-width: 720px;
  color: inherit;
  font-size: 19px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.button:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.button.secondary {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: #ebe4d8;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(30, 36, 43, .04);
}

.card-body { padding: 18px; }

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.chip {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}

.chip.is-active {
  border-color: var(--accent);
  background: #d9f4ef;
  color: var(--accent-strong);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 32px;
  align-items: start;
}

.form {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.input, textarea, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea { min-height: 160px; resize: vertical; }

.notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.notice.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: var(--danger);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
  color: #e5e7eb;
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer a { color: #fff; }

.footer-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-tools p {
  margin: 0;
}

.music-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.music-toggle:hover,
.music-toggle[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.music-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.music-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #fff;
}

.music-toggle[aria-pressed="true"] .music-icon::before {
  width: 8px;
  height: 10px;
  margin-left: 0;
  border: 0;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
}

.footer-link {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.footer-link:hover {
  text-decoration: underline;
}

.cookie-banner[hidden],
.cookie-options[hidden],
.cookie-save-button[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 18px;
  background: rgba(23, 32, 42, .72);
}

.cookie-panel {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.cookie-panel h2 {
  margin-bottom: 8px;
}

.cookie-panel p {
  margin: 0;
}

.cookie-options {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.cookie-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.cookie-button-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.cookie-button-secondary {
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent-strong);
}

.cookie-button-ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.cookie-small {
  grid-column: 1 / -1;
  font-size: 13px;
}

.policy h2 {
  margin-top: 30px;
}

.table-wrap {
  overflow-x: auto;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.policy-table th,
.policy-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

@media (max-width: 800px) {
  .header-inner { min-height: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .hero { min-height: 460px; }
  .footer-inner { display: block; padding: 20px 0; }
  .footer-tools { justify-content: flex-start; }
  .cookie-panel { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .button,
  .cookie-actions .cookie-button { width: 100%; }
}
