/* La Foce — lafocesiracusa.it
   Palette: La Foce / Kyane brand board (2026-05-26 UI direction).
   Liquid Glass is chrome-only: nav + primary controls. Content is paper. */

:root {
  --deep: #073444;        /* Deep Blue Green — identity authority, dark surfaces */
  --azure: #1E5368;       /* Dark Azure — glass depth */
  --aquatic: #5F8174;     /* Aquatic Green */
  --aqua-glass: #8AA799;  /* Pale aquatic glass tint */
  --limestone: #E9E0CF;   /* Warm Limestone — paper */
  --shell: #F4EEE2;       /* Light Limestone / Shell */
  --bronze: #A97832;      /* Bronze Ochre — restrained accent only */
  --ink: #07182A;         /* Deep ink */

  /* Logo SVG hooks */
  --lafoce-wave: var(--deep);
  --lafoce-sun: var(--bronze);
  --lafoce-wordmark: var(--deep);

  --radius: 18px;
  --gutter: 20px;
  --toolbar-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--toolbar-h) + 24px); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--shell);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--azure); }

.container {
  width: min(100% - 2 * var(--gutter), 1080px);
  margin-inline: auto;
}

/* ---------- Liquid Glass chrome ---------- */

.liquid-glass {
  background: color-mix(in srgb, var(--shell) 26%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.7) contrast(1.08) brightness(1.12);
  backdrop-filter: blur(18px) saturate(1.7) contrast(1.08) brightness(1.12);
  border: 1px solid color-mix(in srgb, var(--shell) 45%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 55%, transparent),
    0 8px 28px color-mix(in srgb, var(--ink) 22%, transparent);
}

.liquid-glass:not(.fixed) { position: relative; }

/* ---------- Toolbar / expanding sheet nav ---------- */

.toolbar {
  position: fixed;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  width: min(100% - 2 * var(--gutter), 1080px);
  border-radius: 22px;
  z-index: 50;
  overflow: hidden;
  transition: border-radius 0.25s ease;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--toolbar-h);
  padding-inline: 14px;
}

.toolbar .brand { display: flex; align-items: center; flex: none; }
.toolbar .brand svg, .toolbar .brand img { height: 40px; width: auto; }

.toolbar-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.toolbar-actions .btn { white-space: nowrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--azure) 88%, #ffffff),
    var(--deep));
  color: var(--shell);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 40%, transparent),
    0 6px 18px color-mix(in srgb, var(--deep) 35%, transparent);
}

.btn-glass {
  color: var(--deep);
}

.btn-whatsapp {
  background: linear-gradient(180deg, #2fb36a, #1d7f49);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 45%, transparent),
    0 6px 18px rgba(29, 127, 73, 0.35);
}

.menu-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--deep) 25%, transparent);
  color: var(--deep);
  font-size: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.menu {
  display: none;
  padding: 6px 10px 14px;
}

.toolbar.open .menu { display: block; }
.toolbar.open { border-radius: 26px; }

.menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
}

.menu a:active, .menu a:hover {
  background: color-mix(in srgb, var(--shell) 55%, transparent);
}

.menu .mi {
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--azure) 14%, transparent);
  color: var(--deep);
}

.menu .mt { display: flex; flex-direction: column; }
.menu .mt small { color: color-mix(in srgb, var(--ink) 60%, transparent); }
.menu .chev { margin-left: auto; color: color-mix(in srgb, var(--ink) 40%, transparent); }

.lang-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--deep) 25%, transparent);
  color: var(--deep);
}

.lang-select-wrap svg { flex: none; width: 16px; height: 16px; }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--deep);
  /* Fixed width: language names vary in length and must not resize the bar */
  width: 84px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  padding-right: 2px;
}

/* Mobile toolbar budget: brand + language + menu must fit 320px.
   The book CTA lives in the hero and the sticky bottom bar on phones. */
@media (max-width: 639px) {
  .toolbar .brand svg, .toolbar .brand img { height: 32px; }
  .toolbar-actions > .btn-primary { display: none; }
  .lang-select { width: 64px; }
}

.lang-select:focus { outline: none; }

.scrim {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

body.menu-open .scrim { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  color: var(--shell);
  background:
    radial-gradient(120% 90% at 80% 0%,
      color-mix(in srgb, var(--aquatic) 45%, var(--azure)) 0%,
      var(--azure) 38%,
      var(--deep) 78%,
      color-mix(in srgb, var(--ink) 60%, var(--deep)) 100%);
  overflow: hidden;
}

/* Animated water at the foot of the hero */
.hero-sea {
  position: absolute;
  inset: auto 0 -2px 0;
  height: 120px;
  pointer-events: none;
}

.hero-sea .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}

.wave-a { animation: drift 16s linear infinite; }
.wave-b { animation: drift 11s linear infinite reverse; }
.wave-c { animation: drift 22s linear infinite; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Papyrus line-art, gently swaying */
.papyrus {
  position: absolute;
  bottom: -18px;
  width: clamp(110px, 22vw, 210px);
  height: auto;
  opacity: 0.5;
  pointer-events: none;
  transform-origin: bottom center;
}

.papyrus-r { right: -12px; animation: sway 7s ease-in-out infinite; }
.papyrus-l { left: -26px; width: clamp(80px, 15vw, 150px); opacity: 0.3; animation: sway 9s ease-in-out infinite reverse; }

@keyframes sway {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.6deg); }
}

.hero-inner {
  position: relative;
  padding: calc(var(--toolbar-h) + 60px) 0 56px;
}

.hero .kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--shell) 78%, var(--aqua-glass));
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 700;
  max-width: 17ch;
  margin-bottom: 14px;
}

.hero p.lead {
  max-width: 46ch;
  font-size: 1.06rem;
  color: color-mix(in srgb, var(--shell) 88%, transparent);
  margin-bottom: 26px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--shell) 75%, transparent);
  padding-bottom: 6px;
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.section-head { margin-bottom: 28px; }

.section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--deep);
  margin-bottom: 8px;
}

.section-head p { max-width: 56ch; color: color-mix(in srgb, var(--ink) 75%, transparent); }

/* Paper service cards: warm paper, river top rule */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--limestone);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--deep) 10%, transparent);
  border-top: 4px solid var(--azure);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--ink) 8%, transparent);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card .ci {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--azure) 14%, transparent);
  color: var(--deep);
}

.card h3 { color: var(--deep); font-size: 1.15rem; }

.card .desc { color: color-mix(in srgb, var(--ink) 78%, transparent); font-size: 0.97rem; }

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px dashed color-mix(in srgb, var(--deep) 22%, transparent);
}

.price-row .unit { font-size: 0.85rem; color: color-mix(in srgb, var(--ink) 62%, transparent); }

.price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--deep);
}

.price small { font-size: 0.85rem; font-weight: 600; color: color-mix(in srgb, var(--ink) 62%, transparent); }

.card .note { font-size: 0.85rem; color: color-mix(in srgb, var(--ink) 60%, transparent); }

.seasonal-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
}

/* ---------- Place ---------- */

.place-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.place-panel {
  background: var(--limestone);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--deep) 10%, transparent);
  padding: 22px;
}

.place-panel h3 { color: var(--deep); margin-bottom: 8px; }
.place-panel p { color: color-mix(in srgb, var(--ink) 78%, transparent); font-size: 0.97rem; }
.place-panel .addr { font-style: normal; font-weight: 600; color: var(--deep); margin: 10px 0; }
.place-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.btn-outline {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid color-mix(in srgb, var(--deep) 45%, transparent);
}

/* ---------- Myth ---------- */

.myth {
  background:
    radial-gradient(100% 120% at 20% 0%,
      var(--azure) 0%,
      var(--deep) 60%,
      color-mix(in srgb, var(--ink) 55%, var(--deep)) 100%);
  color: var(--shell);
}

.myth h2 { color: var(--shell); }
.myth .section-head p { color: color-mix(in srgb, var(--shell) 80%, transparent); }

.myth blockquote {
  border-left: 3px solid var(--bronze);
  padding-left: 16px;
  max-width: 60ch;
  color: color-mix(in srgb, var(--shell) 90%, transparent);
  font-size: 1.02rem;
}

/* ---------- Book / contact ---------- */

.book-steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.book-steps li {
  list-style: none;
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--limestone);
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--deep) 10%, transparent);
  padding: 14px 16px;
}

.book-steps li::before {
  content: counter(step);
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--deep);
  color: var(--shell);
  font-weight: 700;
  font-size: 0.9rem;
}

.contact-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--limestone);
  border: 1px solid color-mix(in srgb, var(--deep) 10%, transparent);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
}

.contact-card .ci {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--azure) 14%, transparent);
  color: var(--deep);
}

.contact-card strong { display: block; color: var(--deep); }
.contact-card span { font-size: 0.9rem; color: color-mix(in srgb, var(--ink) 65%, transparent); }

/* ---------- Footer ---------- */

footer {
  background: var(--deep);
  color: color-mix(in srgb, var(--shell) 80%, transparent);
  padding: 36px 0 46px;
  font-size: 0.9rem;
}

footer .brand-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
footer .brand-line img, footer .brand-line svg { height: 34px; width: auto; }
footer a { color: color-mix(in srgb, var(--shell) 90%, transparent); }
footer .fine { margin-top: 10px; font-size: 0.8rem; color: color-mix(in srgb, var(--shell) 55%, transparent); }

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 14px;
  font-size: 0.82rem;
}

.footer-langs a { text-decoration: none; }
.footer-langs a:hover { text-decoration: underline; }
.footer-langs span[aria-current] { color: var(--shell); font-weight: 700; }

/* Reverse logo colors on dark surfaces */
.on-dark {
  --lafoce-wave: var(--shell);
  --lafoce-sun: var(--bronze);
  --lafoce-wordmark: var(--shell);
}

/* ---------- Language suggestion banner ---------- */

.lang-banner {
  position: fixed;
  left: 50%;
  translate: -50% 0;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(100% - 2 * var(--gutter), 560px);
  border-radius: 20px;
  padding: 14px 16px;
  z-index: 60;
  color: var(--ink);
}

.lang-banner p { font-weight: 600; margin-bottom: 10px; color: var(--deep); }

.lang-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Why-us chips (hero) ---------- */

.why-strip {
  list-style: none;
  display: flex;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.why-strip::-webkit-scrollbar { display: none; }

.why-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--shell);
  white-space: nowrap;
}

.why-chip svg { color: color-mix(in srgb, var(--shell) 70%, var(--bronze)); }

/* ---------- Photo gallery (enabled once real photos land) ---------- */

.gallery { padding-top: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--limestone);
  border: 1px solid color-mix(in srgb, var(--deep) 10%, transparent);
}

.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid figure:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 9; }

/* ---------- Scroll reveal ---------- */

.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.will-reveal.in { opacity: 1; transform: none; }

/* ---------- Tactile cards ---------- */

.card, .contact-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover, .contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--ink) 16%, transparent);
}

.card:active, .contact-card:active { transform: translateY(-1px); }

/* ---------- Sticky mobile booking bar ---------- */

.mobile-cta {
  position: fixed;
  left: 50%;
  translate: -50% 0;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(100% - 2 * var(--gutter), 420px);
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  z-index: 45;
  opacity: 0;
  transform: translateY(90px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.mobile-cta .btn { flex: 1; padding-inline: 12px; }

body.cta-visible .mobile-cta {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 639px) {
  /* Keep the language banner clear of the booking bar */
  body.cta-visible .lang-banner {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 640px) {
  .mobile-cta { display: none; }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .place-grid { grid-template-columns: 1.2fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid figure:nth-child(1) { grid-column: span 1; aspect-ratio: 4 / 3; }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave-a, .wave-b, .wave-c, .papyrus-r, .papyrus-l { animation: none; }
  .will-reveal { opacity: 1; transform: none; transition: none; }
  .card, .contact-card, .mobile-cta { transition: none; }
}
