:root {
  --ink: #30261f;
  --muted: #6c5b4c;
  --line: rgba(92, 62, 42, 0.18);
  --paper: #fff8ee;
  --paper-deep: #f2e2cc;
  --white: #ffffff;
  --terracotta: #a85f3d;
  --terracotta-dark: #7f422b;
  --olive: #687246;
  --honey: #d69b4a;
  --sea: #597d82;
  --sea-dark: #355d62;
  --sand: #ead4b5;
  --shadow: 0 18px 48px rgba(82, 50, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(255, 248, 238, 1)),
    var(--paper);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 248, 238, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  display: block;
  width: min(220px, 48vw);
  height: auto;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

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

.language-switcher {
  display: inline-flex;
  padding: 3px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(60, 42, 30, 0.08);
}

.lang-button {
  min-width: 42px;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.lang-button.active {
  color: var(--white);
  background: var(--terracotta);
}

.hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(22px, 5vw, 54px);
  align-items: end;
  overflow: hidden;
  padding: clamp(64px, 9vw, 122px) clamp(18px, 5vw, 72px) 48px;
  color: var(--paper);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(60, 36, 22, 0.6), rgba(127, 66, 43, 0.42) 48%, rgba(88, 93, 57, 0.42)),
    radial-gradient(circle at 50% 42%, rgba(255, 248, 238, 0.12), transparent 30%),
    var(--hero-image, url("assets/foto/booking/vista-mare-hero.jpg")) center / cover no-repeat,
    linear-gradient(135deg, var(--terracotta-dark), var(--olive));
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.04), rgba(48, 38, 31, 0.28)),
    repeating-linear-gradient(90deg, rgba(255, 248, 238, 0.06) 0 1px, transparent 1px 52px);
  content: "";
}

.hero-content {
  max-width: 900px;
  text-shadow: 0 2px 28px rgba(28, 17, 10, 0.36);
}

.hero-logo {
  width: min(250px, 56vw);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 14px 30px rgba(30, 18, 10, 0.24));
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 13vw, 132px);
  font-weight: 500;
  line-height: 0.9;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5.8vw, 64px);
  font-weight: 500;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lead {
  max-width: 680px;
  margin-bottom: 8px;
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 700;
}

.lead-alt {
  max-width: 760px;
  color: rgba(255, 248, 238, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.english {
  color: var(--sea-dark);
  font-style: italic;
}

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

.button,
.contact-grid a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.contact-grid a:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fffaf2;
  background: var(--terracotta);
  box-shadow: 0 16px 34px rgba(62, 30, 14, 0.24);
}

.button.primary:hover {
  background: var(--terracotta-dark);
}

.button.secondary {
  color: var(--paper);
  border: 1px solid rgba(255, 248, 238, 0.72);
  background: rgba(255, 248, 238, 0.08);
}

.button.btn-whatsapp {
  margin-top: 14px;
  color: #fffaf2;
  background: #25d366;
  box-shadow: 0 14px 30px rgba(18, 140, 70, 0.28);
}

.button.btn-whatsapp:hover {
  background: #1da851;
}

.quick-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 248, 238, 0.3);
  border-radius: 8px;
  background: rgba(255, 248, 238, 0.12);
  box-shadow: 0 18px 48px rgba(30, 18, 10, 0.15);
  backdrop-filter: blur(8px);
}

.quick-card span {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 248, 238, 0.2);
  font-weight: 700;
}

.quick-card span:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.section {
  padding: clamp(54px, 8vw, 100px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-lead {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 6vw, 72px);
}

.copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.comfort-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.features article,
.destination-card {
  min-height: 180px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(82, 50, 30, 0.06);
}

.features.compact article {
  min-height: 150px;
}

.features p,
.location p,
.contact p,
.faq p,
.destination-card p {
  color: var(--muted);
}

.warm-section {
  background:
    linear-gradient(135deg, rgba(168, 95, 61, 0.12), rgba(104, 114, 70, 0.12)),
    var(--paper-deep);
}

.city-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(214, 155, 74, 0.18), transparent 34%),
    var(--paper);
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.destination-card {
  display: flex;
  min-height: 292px;
  flex-direction: column;
}

.destination-card h3 {
  color: var(--terracotta-dark);
  font-size: 22px;
}

.destination-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 10px;
  color: var(--white);
  background: var(--olive);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.map-button {
  width: 100%;
  margin-top: auto;
  color: var(--terracotta-dark);
  border: 1px solid rgba(168, 95, 61, 0.34);
  background: rgba(255, 248, 238, 0.72);
  font-size: 14px;
}

.info-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 28px;
  align-items: center;
  background: #f8ead8;
}

.info-band p {
  color: var(--muted);
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-list div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-list strong {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--terracotta);
  border-radius: 999px;
}

.rules {
  background: #fbf0e4;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  background: var(--white);
}

.booking-copy p,
.admin-note {
  color: var(--muted);
}

.availability-box,
.booking-form {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 12px;
}

.icon-button {
  width: 38px;
  height: 38px;
  color: var(--terracotta-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

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

.calendar-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.calendar-day.free {
  color: var(--sea-dark);
  background: var(--white);
}

.calendar-day.booked {
  color: #7b2d2d;
  background: #ffe3df;
  cursor: not-allowed;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.calendar-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.legend-free {
  background: var(--sea);
}

.legend-busy {
  background: #d56a5e;
}

.booking-form {
  display: grid;
  gap: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

textarea {
  resize: vertical;
}

.form-submit {
  border: 0;
  cursor: pointer;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-message.success {
  color: #17693a;
}

.form-message.error {
  color: #9d2f26;
}

.admin-section h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.admin-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

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

.admin-table th {
  color: var(--terracotta-dark);
  background: #f5e2cc;
  font-size: 13px;
  text-transform: uppercase;
}

.admin-table input,
.admin-table textarea,
.admin-table select {
  margin-bottom: 8px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

details {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  color: var(--terracotta-dark);
  font-weight: 700;
}

details p {
  margin: 12px 0 0;
}

.location {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(89, 125, 130, 0.12), rgba(214, 155, 74, 0.14)),
    #f8ead8;
}

.location-button {
  margin-top: 12px;
  color: var(--white);
  background: var(--terracotta);
}

.location-panel {
  display: grid;
  gap: 14px;
}

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

.distance-list div {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.distance-list strong {
  color: var(--terracotta-dark);
  font-size: 28px;
  line-height: 1;
}

.distance-list span {
  color: var(--muted);
}

.map-frame {
  min-height: 360px;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.contact {
  max-width: 980px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.contact-grid a {
  color: var(--white);
  background: var(--sea);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
}

footer img {
  width: 120px;
  height: auto;
}

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

  .distance-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-tools {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  nav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .hero,
  .split,
  .info-band,
  .booking-section,
  .location {
    grid-template-columns: 1fr;
  }

  .features,
  .faq-grid,
  .form-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    align-self: stretch;
  }
}

@media (max-width: 640px) {
  .destination-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px 16px;
  }

  nav {
    font-size: 13px;
  }

  h1 {
    font-size: 54px;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .button,
  .contact-grid a {
    width: 100%;
  }

  .destination-card {
    min-height: 0;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 310px;
  }
}

/* ============================================
   MIGLIORIE ACCESSIBILITA (aggiunte 2026-06)
   ============================================ */

/* Anello di focus visibile per chi naviga da tastiera */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sea-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Link "salta al contenuto" per screen reader: nascosto finche non riceve focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  color: var(--white);
  background: var(--terracotta-dark);
  font-weight: 800;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* Rispetta la preferenza di sistema "riduci animazioni" */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   FOTO HERO PIU VISIBILE SU TELEFONO (2026-06)
   ============================================ */
@media (max-width: 820px) {
  /* Strato scuro piu leggero: la foto del balcone si vede meglio */
  .hero::before {
    background:
      linear-gradient(135deg, rgba(60, 36, 22, 0.42), rgba(127, 66, 43, 0.28) 48%, rgba(88, 93, 57, 0.28)),
      var(--hero-image, url("assets/foto/booking/vista-mare-hero.jpg")) center / cover no-repeat,
      linear-gradient(135deg, var(--terracotta-dark), var(--olive)) !important;
  }
  /* Ombra del testo piu marcata, cosi resta leggibile sulla foto piu chiara */
  .hero-content {
    text-shadow: 0 2px 18px rgba(20, 12, 6, 0.85), 0 1px 4px rgba(20, 12, 6, 0.9);
  }
}
