/* © 2026 Associazione culturale Le Dame dell'Uncinetto — Tutti i diritti riservati.
   Codice proprietario: non ridistribuibile senza autorizzazione scritta. */

/* ==========================================================================
   Le Dame dell'Uncinetto - Site stylesheet
   --------------------------------------------------------------------------
   This file has all the styles for the site.
   The site is mobile first. Base rules apply to small screens.
   Media queries add rules for larger screens.
   The visual language follows the original site: cream paper, serif type,
   warm bold emphasis, large full-width photos, square terracotta buttons.
   Comments use ASD-STE100 (Simplified Technical English).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   The fonts are local files. The site does not call Google servers.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/karla-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   The colors come from the original site and from the logo.
   -------------------------------------------------------------------------- */
:root {
  --cream: #fff5e8;            /* Page background (original site) */
  --cream-deep: #f6e7d2;       /* Alternate section background */
  --paper: #fffaf3;            /* Light surface */
  --gold: #bd8445;             /* Accent: hairlines, labels (original site) */
  --gold-light: #e9c79b;       /* Accent on dark backgrounds */
  --tan: #af8c68;              /* Secondary accent (original site) */
  --terracotta: #a23624;       /* Primary action color (original site) */
  --terracotta-dark: #86291a;  /* Hover state */
  --coral: #f0533d;            /* Logo line color */
  --ink: #182433;              /* Headings, deep blue-black (original site) */
  --text: #31302e;             /* Body text (original site) */
  --text-soft: #5c574f;        /* Secondary text */
  --line: #e4d2b6;             /* Hairlines */
  --night: #2a2522;            /* Dark sections, warm black */
  --whatsapp: #25d366;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1120px;
  --narrow: 760px;
  --gutter: 1.25rem;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(24, 36, 51, 0.10);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   3. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--terracotta-dark);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.6em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 5.5vw, 2.9rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

/* Warm bold emphasis, as in the original site. */
strong {
  font-weight: 700;
  color: var(--ink);
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

address {
  font-style: normal;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 4rem;
}

.section--alt {
  background: var(--cream-deep);
}

.section--dark {
  background: var(--night);
  color: #e8dcc8;
}

.section--dark h2,
.section--dark h3,
.section--dark strong {
  color: var(--white);
}

.section--dark a {
  color: var(--gold-light);
}

/* Section head: centered, with a gold hairline under the title. */
.section__head {
  max-width: var(--narrow);
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__head h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin: 1rem auto 0;
  background: var(--gold);
}

.section--dark .section__head h2::after {
  background: var(--gold-light);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

/* Lead text: serif, as in the original hero. */
.lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.55;
  color: var(--text);
}

.section--dark .lead {
  color: #e8dcc8;
}

/* --------------------------------------------------------------------------
   5. Buttons
   Square corners and terracotta, as in the original site.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.btn--primary,
.btn--whatsapp {
  background: var(--terracotta);
  color: var(--white);
}

.btn--primary:hover,
.btn--whatsapp:hover {
  background: var(--terracotta-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}

/* Ghost button for dark photo backgrounds. */
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.btn--light {
  background: var(--white);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--cream);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   6. Header
   Fixed. Transparent over the hero photo, cream after the visitor scrolls.
   JavaScript adds the class "header--over-hero" at the top of the page.
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 245, 232, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.header--over-hero {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.brand__name {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.1;
  white-space: nowrap;
}

.brand__tag {
  display: none;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-soft);
}

.header--over-hero .brand,
.header--over-hero .brand__tag {
  color: var(--white);
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  white-space: nowrap;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--ink);
  border-bottom-color: var(--terracotta);
}

.header--over-hero .nav__link {
  color: var(--white);
}

.header--over-hero .nav__link:hover {
  color: var(--white);
  border-bottom-color: var(--gold-light);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Language switcher */
.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}

.header--over-hero .lang {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.15);
}

.lang__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 1.9rem;
  padding-inline: 0.45rem;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
}

.lang__link:hover {
  color: var(--ink);
}

.lang__link[aria-current="true"] {
  background: var(--ink);
  color: var(--white);
}

.header--over-hero .lang__link {
  color: rgba(255, 255, 255, 0.8);
}

.header--over-hero .lang__link[aria-current="true"] {
  background: var(--white);
  color: var(--ink);
}

/* Mobile menu button */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  cursor: pointer;
}

.header--over-hero .menu-btn {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.15);
  color: var(--white);
}

.menu-btn svg {
  width: 1.3rem;
  height: 1.3rem;
}

.menu-btn .icon-close {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile menu panel */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
  max-height: calc(100vh - 4.25rem);
  overflow-y: auto;
}

.mobile-nav[data-open="true"] {
  display: block;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
}

.mobile-nav__link {
  display: block;
  padding: 0.9rem var(--gutter);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-nav__cta {
  padding: 1rem var(--gutter) 1.25rem;
  display: grid;
  gap: 0.6rem;
}

/* --------------------------------------------------------------------------
   7. Hero
   Full-screen photo with the logo and the title in the center.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 640px;
  min-height: clamp(640px, 100svh, 920px);
  padding: 7rem 0 3.5rem;
  color: var(--white);
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

/* Warm dark gradient. It makes the text readable on the photo. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 65% at 50% 60%, rgba(24, 20, 18, 0.8) 0%, rgba(24, 20, 18, 0.3) 70%, rgba(24, 20, 18, 0) 100%),
    linear-gradient(180deg, rgba(24, 20, 18, 0.6) 0%, rgba(24, 20, 18, 0.4) 30%, rgba(24, 20, 18, 0.65) 60%, rgba(24, 20, 18, 0.94) 100%),
    linear-gradient(180deg, rgba(162, 54, 36, 0.10), rgba(162, 54, 36, 0));
}

.hero__content {
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 52rem;
}

.hero__logo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.5rem;
}

.hero__kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.hero__title {
  color: var(--white);
  margin-bottom: 0.45em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.6);
}

.hero__title em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold-light);
}

.hero__text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  line-height: 1.55;
  color: rgba(255, 245, 232, 0.96);
  max-width: 44rem;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.hero__text strong {
  color: var(--white);
}

/* Two buttons of equal width. One per row on small screens. */
.hero__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 22rem;
}

.hero__actions .btn {
  width: 100%;
}

.hero__note {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: rgba(255, 245, 232, 0.8);
}

/* Little arrow at the bottom of the hero */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
  animation: hero-bounce 2.4s infinite;
}

@keyframes hero-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* --------------------------------------------------------------------------
   8. Notice band (next openings)
   -------------------------------------------------------------------------- */
/* Terracotta band: it stands out between the dark hero and the cream page. */
.notice-wrap {
  background: var(--terracotta);
  color: var(--white);
  border-top: 3px solid var(--gold-light);
}

.notice {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  text-align: center;
  padding: 2.25rem 0;
}

.notice__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f6dcc4;
}

.notice__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  line-height: 1.25;
  color: var(--white);
  max-width: 44rem;
}

.notice__sub {
  margin: 0;
  font-size: 1rem;
  color: #f6dcc4;
  max-width: 44rem;
}

.notice__sub a {
  color: var(--white);
  font-weight: 700;
}

/* Bold text on dark backgrounds must stay light. */
.notice strong {
  color: #ffe6b8;
}

.band strong,
.footer strong {
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   9. Quick visit info
   Centered items with icon circles, like the contact row of the old site.
   -------------------------------------------------------------------------- */
.visit-grid {
  display: grid;
  gap: 2rem 1.5rem;
}

.info-card {
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  gap: 0.75rem;
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--terracotta);
  background: var(--paper);
}

.info-card__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.info-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.info-card p + p {
  margin-top: 0.4rem;
}

.info-card a {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   10. Feature blocks (miniature, story)
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.feature + .feature {
  margin-top: 3.5rem;
}

.feature__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature__img--portrait {
  aspect-ratio: 4 / 5;
}

.feature__body h2,
.feature__body h3 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.feature__body h2::after,
.feature__body h3::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 0.8rem;
  background: var(--gold);
}

.feature__body p {
  color: var(--text);
}

.feature__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.feature__list li {
  position: relative;
  padding-left: 1.5rem;
}

.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Pull quote */
.quote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--terracotta);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

.quote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
}

/* Align the photo with the top of the text in tall features. */
.feature--top {
  align-items: start;
}

.timeline__item {
  position: relative;
  padding: 0 0 1.5rem 1.75rem;
  border-left: 1px solid var(--gold);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.45rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid var(--cream);
}

.section--alt .timeline__item::before {
  border-color: var(--cream-deep);
}

.timeline__year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terracotta);
}

.timeline__item p {
  margin: 0.2rem 0 0;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   11. Full-width photo bands
   A large photo with a short sentence on it. Edge to edge.
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 420px;
  min-height: clamp(420px, 70svh, 640px);
  padding: 4rem 0;
  color: var(--white);
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}

.band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 50% 55%, rgba(24, 20, 18, 0.72) 0%, rgba(24, 20, 18, 0.25) 70%, rgba(24, 20, 18, 0) 100%),
    linear-gradient(180deg, rgba(24, 20, 18, 0.35) 0%, rgba(24, 20, 18, 0.7) 100%);
}

.band__content {
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 46rem;
}

.band__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 2.3rem);
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 4px 28px rgba(0, 0, 0, 0.6);
  margin: 0 0 0.5rem;
}

.band__quote em {
  font-style: italic;
  color: var(--gold-light);
}

.band__sub {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 245, 232, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   12. Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

/* Banner: full row on 2 columns. Fills the last row. */
.gallery__item--banner {
  grid-column: span 2;
}

.gallery__item--banner img {
  aspect-ratio: 2 / 1;
}

.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 0.75rem 0.65rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--white);
  background: linear-gradient(180deg, rgba(24, 20, 18, 0) 0%, rgba(24, 20, 18, 0.8) 100%);
}

/* --------------------------------------------------------------------------
   13. Association block
   -------------------------------------------------------------------------- */
.assoc {
  display: grid;
  gap: 2.5rem;
}

/* Short list of audiences. A small gold dot marks each item. */
.assoc__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.assoc__list li {
  padding-left: 1.4rem;
  position: relative;
  color: #cbbda6;
}

.assoc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold-light);
}

.datasheet {
  display: grid;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.datasheet div {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.datasheet dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.datasheet dd {
  margin: 0;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   14. Opening hours table
   -------------------------------------------------------------------------- */
.hours {
  width: 100%;
  max-width: var(--narrow);
  margin: 0 auto;
  border-collapse: collapse;
  border-top: 2px solid var(--gold);
}

.hours th,
.hours td {
  padding: 1rem 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.hours th {
  width: 40%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.hours td {
  color: var(--text-soft);
}

/* Two buttons of equal width under the table. */
.hours-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 22rem;
  margin: 2rem auto 0;
}

.hours-actions .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   15. Map section
   -------------------------------------------------------------------------- */
.map {
  display: grid;
  gap: 1.5rem;
}

.map__frame {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(189, 132, 69, 0.3) 1px, transparent 0) 0 0 / 14px 14px,
    var(--cream-deep);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}

.map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.map__address h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.map__address h3::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 0.7rem;
  background: var(--gold);
}

.map__address p {
  margin: 0 0 0.75rem;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  max-width: var(--narrow);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  line-height: 1;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--terracotta);
  font-family: var(--font-body);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > div {
  padding: 0 2.5rem 1.2rem 0;
  color: var(--text-soft);
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   17. Contact section
   Two buttons, three lines, social icons. All centered.
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  max-width: var(--narrow);
  margin: 0 auto;
  text-align: center;
}

.contact__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 22rem;
}

.contact__actions .btn {
  width: 100%;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 1.05rem;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  text-align: left;
}

.contact__list svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  color: var(--terracotta);
}

.contact__list a {
  font-weight: 700;
}

.contact__social {
  display: flex;
  gap: 0.6rem;
}

.contact__social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--terracotta);
}

.contact__social svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 3.5rem 0 2rem;
  background: var(--night);
  color: #cbbda6;
  font-size: 0.92rem;
}

.footer a {
  color: var(--gold-light);
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer__brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.footer h3 {
  color: var(--white);
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer__social {
  display: flex;
  gap: 0.6rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.footer__social svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* Legal line and photo credit, one under the other. */
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #a08f78;
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom p + p {
  font-size: 0.8rem;
  color: #a08f78;
}

/* Firma di chi ha realizzato il sito: etichetta e logo in un unico link,
   così lo screen reader legge "Sito realizzato da Margherita Mariotti".
   Il logo è la versione negativa per fondi scuri: niente filtri. */
.footer__bottom .footer__credit {
  margin-top: 1.5rem;
  justify-self: center;
}

.footer__credit-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #cbbda6;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.18s ease;
}

.footer__credit-link:hover {
  opacity: 1;
}

.footer__credit-link:hover strong,
.footer__credit-link:focus-visible strong {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .footer__credit-link {
    transition: none;
  }
}

.footer__credit-logo {
  width: 150px;
  height: auto;
}

/* --------------------------------------------------------------------------
   19. Consent banner
   -------------------------------------------------------------------------- */
.consent {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 1rem;
  z-index: 95;
  display: none;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.consent[data-visible="true"] {
  display: grid;
}

.consent p {
  margin: 0;
  color: var(--text-soft);
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.consent .btn {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   19b. Legal pages (privacy policy)
   A narrow text column. The top padding leaves room for the fixed header.
   -------------------------------------------------------------------------- */
.legal {
  padding: 7.5rem 0 4rem;
}

.legal .container {
  max-width: var(--narrow);
}

.legal h1 {
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  margin-bottom: 0.3em;
}

.legal h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 0.7rem;
}

.legal__updated {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: var(--cream-deep);
}

.legal__back {
  margin: 3rem 0 0;
}

.footer--compact {
  padding: 0 0 2rem;
}

.footer--compact .footer__bottom {
  margin-top: 0;
  border-top: 0;
  padding-top: 2rem;
}

/* --------------------------------------------------------------------------
   20. Responsive rules
   -------------------------------------------------------------------------- */
@media (min-width: 560px) {
  :root {
    --gutter: 1.5rem;
  }

  .brand__name,
  .brand__tag {
    display: block;
  }

  .visit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 3 columns: the banner is a single cell. The 860px rules span it again. */
  .gallery__item--banner {
    grid-column: auto;
  }

  .gallery__item--banner img {
    aspect-ratio: 1 / 1;
  }

  .map__actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .consent {
    left: auto;
    right: 1.5rem;
    max-width: 24rem;
  }
}

@media (min-width: 860px) {
  .section {
    padding-block: 5.5rem;
  }

  .hero {
    padding: 8rem 0 4rem;
    align-items: center;
  }

  .hero__logo {
    width: 128px;
    height: 128px;
  }

  .hero__actions,
  .hours-actions {
    grid-template-columns: 1fr 1fr;
    max-width: 34rem;
  }

  .visit-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 0;
  }

  .visit-grid .info-card {
    padding-inline: 1rem;
  }

  .visit-grid .info-card + .info-card {
    border-left: 1px solid var(--line);
  }

  /* The photo stays in view while the visitor reads the long timeline. */
  .feature--top .feature__media {
    position: sticky;
    top: 6rem;
  }

  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .feature--reverse .feature__media {
    order: 2;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .gallery__item--wide img {
    aspect-ratio: 2 / 1;
  }

  .assoc {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
  }

  .map {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 3rem;
  }

  .map__actions {
    grid-template-columns: 1fr;
  }

  .contact__actions {
    grid-template-columns: 1fr 1fr;
    max-width: 34rem;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

}

/* The desktop menu needs more room than the 860px layout gives. */
@media (min-width: 1080px) {
  .nav {
    display: block;
  }

  .menu-btn,
  .mobile-nav {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   21. Print
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .consent,
  .menu-btn,
  .mobile-nav,
  .map__frame,
  .hero__bg,
  .hero__overlay,
  .band__img {
    display: none !important;
  }

  .hero,
  .band {
    min-height: 0;
    color: #000;
    background: #fff;
  }

  body {
    background: #fff;
    color: #000;
    padding: 0;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
}
