:root {
  --bg: #F6F1E8;
  --surface: #FFFFFF;
  --text: #1F2328;
  --muted: #6B6F76;
  --border: #E7DED2;
  --accent: #B08B5A;

  --radius: 18px;
  --shadow: 0 10px 26px rgba(31, 35, 40, 0.10);
}

* { box-sizing: border-box; }
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3,
.title,
.logo-text {
  font-family: "Cormorant Garamond", Georgia, serif;
}

a { color: inherit; }

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

/* Accessibilità */
.sr-only {
  position: absolute;
  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;
  left: -999px;
  top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999;
}

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

/* Header */
.lang-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lang-select {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(231, 222, 210, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 18px rgba(31, 35, 40, 0.10);
  cursor: pointer;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 24px rgba(31, 35, 40, 0.12);
}

.lang-flag {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.lang-code {
  letter-spacing: 0.4px;
}

.lang-caret {
  font-size: 12px;
  opacity: 0.7;
  margin-left: 2px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  padding: 6px;
  margin: 0;
  list-style: none;
  border-radius: 14px;
  border: 1px solid rgba(231, 222, 210, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(31, 35, 40, 0.14);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.lang-select.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
}

.lang-option:hover {
  background: rgba(176, 139, 90, 0.12);
}

.lang-option[aria-selected="true"] {
  background: rgba(176, 139, 90, 0.18);
}

.lang-select select {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(231, 222, 210, 0.9);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(231, 222, 210, 0.8);
}

.header-inner {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(231, 222, 210, 0.9);
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 30% 30%, #fff, #efe6da);
}

.logo-text {
  text-align: center;
  line-height: 1.05;
  letter-spacing: 0.2px;
}

.logo-top { font-size: 11px; opacity: 0.85; }
.logo-mid { font-size: 14px; font-weight: 700; }
.logo-bot { font-size: 10px; color: var(--accent); letter-spacing: 0.8px; }

.hero {
  margin-top: 30px;
}

.hero-media {
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(231, 222, 210, 0.95);
  box-shadow: 0 16px 36px rgba(31, 35, 40, 0.12);
  background: rgba(255, 255, 255, 0.65);
}

.hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero {
    width: min(100%, 640px);
    margin: 28px auto 0;
  }
}

/* Intro box */
.intro {
  margin: 24px auto 0;
  max-width: 780px;
  text-align: center;
  background: rgba(255, 250, 244, 0.88);
  border: 1px solid rgba(231, 222, 210, 0.85);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.intro p {
  max-width: 59ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  text-align: justify;
  text-justify: inter-word;
}

.link-strong {
  color: var(--text);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(231, 222, 210, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: rgba(176, 139, 90, 0.7);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
}

/* Grid cards */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 30px 0 18px;
}

.card {
  --thumb: none;
  display: block;
  overflow: hidden;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 222, 210, 0.95);
  border-radius: 18px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(31, 35, 40, 0.10);
  background: rgba(255, 255, 255, 0.92);
}

.card-thumb {
  aspect-ratio: 4 / 3;
  background-image: var(--thumb);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(231, 222, 210, 0.85);
}

.card-body {
  padding: 12px 12px 14px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.contact-strip {
  margin-top: 0;
  padding: 0 0 24px;
}

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

.contact-tile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 222, 210, 0.95);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(31, 35, 40, 0.08);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.contact-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
}

.contact-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.contact-text {
  min-width: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--text);
}

.contact-value {
  margin-top: 0;
  min-height: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(231, 222, 210, 0.9);
  background: rgba(255, 255, 255, 0.55);
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
}

.footer-muted {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

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

.footer-sep {
  margin: 0 8px;
  color: var(--muted);
}

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.fab-whatsapp img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-strip-grid {
    grid-template-columns: 1fr;
  }

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

  .media-panel {
    grid-template-columns: 1fr;
  }

  .media-panel-img {
    min-height: 220px;
  }

  .what-to-do-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .breakfast-card .card-body,
  .wifi-card .card-body,
  .supermarket-card .card-body {
    padding: 22px 18px 24px;
  }

  .breakfast-card .card-thumb,
  .wifi-card .card-thumb,
  .supermarket-card .card-thumb {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
  }

  .lang-select {
    position: static;
    transform: none;
    flex: 0 0 auto;
  }

  .logo {
    padding: 9px 13px;
    gap: 10px;
    max-width: calc(100% - 110px);
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .logo-top { font-size: 10px; }
  .logo-mid { font-size: 13px; }
  .logo-bot { font-size: 9px; }

  .lang-btn {
    gap: 10px;
    padding: 7px 9px;
  }

  .lang-code {
    font-size: 13px;
  }

  .lang-flag {
    width: 16px;
    height: 16px;
  }

  .title {
    font-size: 26px;
  }

  .grid,
  .laundromat-grid,
  .what-to-do-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
  }

  .policy-copy {
    margin: 12px auto 18px;
  }

  .policy-copy h2 {
    font-size: 21px;
  }

  .policy-copy p,
  .policy-copy li {
    font-size: 14px;
    line-height: 1.7;
  }

  .policy-page {
    padding-bottom: 18px;
  }

  .policy-page .page-head {
    margin-top: 18px;
  }
}

/* Pages */
.page {
  padding-bottom: 72px;
}

.page-head {
  margin-top: 48px;
  text-align: center;
}

.page-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.page-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 222, 210, 0.95);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  padding: 22px;
}

.panel-compact {
  padding: 18px;
}

.panel-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}

.panel-line {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.panel-muted {
  color: var(--muted);
}

.media-panel {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  padding: 16px;
}

.media-panel-img {
  min-height: 260px;
  border-radius: 14px;
  border: 1px solid rgba(231, 222, 210, 0.85);
  background-size: cover;
  background-position: center;
}

.media-panel-body {
  padding: 6px 6px 6px 0;
}

.grid-single {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  margin: 24px 0;
}

.grid-single .card {
  width: min(100%, 480px);
}

.breakfast-card .card-thumb,
.wifi-card .card-thumb,
.supermarket-card .card-thumb {
  aspect-ratio: 4 / 3;
}

.breakfast-card .card-body,
.wifi-card .card-body,
.supermarket-card .card-body {
  padding: 22px 22px 24px;
  text-align: center;
}

.breakfast-card p,
.wifi-card p,
.supermarket-card p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
}

.breakfast-card .title,
.wifi-card .title,
.supermarket-card .title {
  margin-bottom: 14px;
}

.policy-copy {
  max-width: 920px;
  margin: 16px auto 24px;
}

.policy-copy h2 {
  margin: 28px 0 10px;
  font-size: 24px;
  font-weight: 700;
}

.policy-copy p,
.policy-copy li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.policy-copy ul {
  margin: 10px 0 18px 20px;
  padding: 0;
}

.policy-copy a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-copy strong {
  font-weight: 700;
}

.policy-page {
  padding-bottom: 24px;
}

.policy-page .page-head {
  margin-top: 24px;
}

.laundromat-grid {
  width: min(100%, 1040px);
  margin: 24px auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.laundromat-grid .card-body {
  padding: 18px 18px 22px;
}

.laundromat-grid p {
  color: var(--text);
  text-align: justify;
  text-justify: inter-word;
}

.laundromat-grid .actions {
  margin-top: 18px;
}

.museum-card,
.guide-card,
.what-to-do-card,
.events-card,
.shopping-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.museum-card .card-body,
.guide-card .card-body,
.events-card .card-body,
.shopping-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.what-to-do-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 22px;
}

.what-to-do-card p {
  color: var(--text);
  text-align: justify;
  text-justify: inter-word;
}

.museum-card .actions,
.guide-card .actions,
.what-to-do-card .actions,
.events-card .actions,
.shopping-card .actions {
  margin-top: auto;
  padding-top: 18px;
  justify-content: center;
}

.what-to-do-grid {
  width: min(100%, 1040px);
  margin: 30px auto 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 981px) {
  .events-grid > .events-card:nth-last-child(2):nth-child(4n + 1) {
    grid-column: 2;
  }

  .events-grid > .events-card:last-child:nth-child(4n + 2) {
    grid-column: 3;
  }
}

/* Fix mobile stacking for page-specific grids */
@media (max-width: 980px) {
  .what-to-do-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .laundromat-grid,
  .what-to-do-grid {
    grid-template-columns: 1fr;
  }
}