:root {
  --ink: #10262d;
  --muted: #5d6c70;
  --paper: #f3faf8;
  --white: #ffffff;
  --sea: #0477b8;
  --sea-dark: #063e68;
  --lagoon: #e3f4ff;
  --coral: #0b84c6;
  --sun: #7fd7ff;
  --line: #d7e4e2;
  --shadow: 0 18px 55px rgba(16, 38, 45, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(228, 245, 241, 0.85), rgba(247, 251, 249, 0) 420px),
    var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection {
  background: rgba(242, 111, 79, 0.28);
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 14px;
  left: clamp(12px, 3vw, 34px);
  right: clamp(12px, 3vw, 34px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 8px 14px;
  color: var(--white);
  background: rgba(6, 62, 104, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(6, 62, 104, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 215px;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 34px;
  object-fit: contain;
  border-radius: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex: 1;
  white-space: nowrap;
}

.main-nav a,
.btn {
  font-weight: 750;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 48, 82, 0.78), rgba(4, 82, 125, 0.28) 56%, rgba(4, 82, 125, 0.08)),
    linear-gradient(0deg, rgba(4, 48, 82, 0.58), rgba(4, 48, 82, 0) 52%),
    url("assets/poetto-panorama.jpg") center / cover;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 86px) clamp(52px, 11vh, 118px);
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.26);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.8rem, 9vw, 8.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
}

h3 {
  font-size: 1.28rem;
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.hero-actions,
.card-actions,
.booking-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--sea), #075b91);
  box-shadow: 0 12px 28px rgba(4, 119, 184, 0.26);
}

.btn.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.btn.ghost {
  color: var(--sea-dark);
  background: rgba(4, 119, 184, 0.08);
  border-color: rgba(4, 119, 184, 0.18);
}

.btn.small {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.9rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  min-height: 116px;
  padding: 24px clamp(18px, 3vw, 34px);
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 1.08rem;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-strip a {
  color: var(--sea-dark);
}

.section {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.section:nth-of-type(odd):not(.booking-band):not(.reviews) {
  background: rgba(255, 255, 255, 0.55);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
}

.section-copy,
.section-heading {
  max-width: 820px;
}

.section-copy p,
.section-heading p,
.booking-band p,
.legal p {
  color: var(--muted);
  font-size: 1.04rem;
}

.image-panel {
  margin: 0;
}

.image-panel img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-panel figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 470px;
  overflow: hidden;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 38, 45, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(16, 38, 45, 0.13);
}

.service-card.featured {
  background: linear-gradient(180deg, #0a6e7c, var(--sea-dark));
  color: var(--white);
}

.service-photo {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
  background: var(--lagoon);
}

.service-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 22px 14px;
  color: var(--sea-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured .service-topline {
  color: var(--sun);
}

.service-card p {
  color: var(--muted);
  margin: 0 22px 22px;
}

.featured p {
  color: rgba(255, 255, 255, 0.82);
}

.service-card h3 {
  margin: 0 22px 12px;
}

.card-actions {
  margin-top: auto;
  padding: 0 22px 22px;
}

.section.reviews {
  overflow: hidden;
  background: linear-gradient(180deg, #063e68, #10262d);
  color: var(--white);
}

.reviews .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.reviews .eyebrow {
  color: var(--sun);
}

.review-marquee {
  width: 100%;
  margin-top: 34px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.review-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: reviews-scroll 28s linear infinite;
}

.review-marquee:hover .review-track {
  animation-play-state: paused;
}

.review-card {
  flex: 0 0 340px;
  min-height: 238px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
}

.review-card h3 {
  margin-top: 12px;
}

.review-card p {
  color: var(--muted);
}

.review-card a {
  color: var(--sea-dark);
  font-weight: 800;
}

.stars {
  color: #1e9de0;
  font-weight: 900;
  letter-spacing: 0.08em;
}

@keyframes reviews-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.booking-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  color: var(--ink);
  background: var(--lagoon);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.booking-band .eyebrow {
  color: var(--sea);
}

.booking-band p {
  color: var(--muted);
  max-width: 760px;
}

.booking-actions {
  justify-content: flex-end;
  max-width: 420px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #10262d;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
}

.whatsapp-footer-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  color: var(--white);
  background: #168c5a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: none;
}

.whatsapp-footer-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.whatsapp-footer-button:hover {
  background: #0f7549;
}

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

.footer-button {
  min-height: 36px;
  padding: 8px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.footer-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.credits {
  flex-basis: 100%;
  font-size: 0.82rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(6, 62, 104, 0.42);
  backdrop-filter: blur(8px);
}

.modal.is-visible {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(82vh, 680px);
  overflow: auto;
  padding: clamp(26px, 4vw, 38px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0 44px 14px 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

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

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--lagoon);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 18px;
  width: min(560px, calc(100% - 36px));
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

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

  .booking-band {
    grid-template-columns: 1fr;
  }

  .booking-actions {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    left: 10px;
    right: 10px;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 44px;
    padding: 7px 10px;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 0;
    gap: 6px;
  }

  .brand strong {
    display: none;
  }

  .brand small {
    display: none;
  }

  .brand span {
    display: none;
  }

  .main-nav {
    order: 0;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 9px;
    width: auto;
    overflow: hidden;
    padding-bottom: 0;
  }

  .main-nav a {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero-media {
    background:
      linear-gradient(0deg, rgba(4, 48, 82, 0.84), rgba(4, 82, 125, 0.16) 72%),
      url("assets/poetto-panorama.jpg") center / cover;
    transform: none;
  }

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

  .service-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

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

  .service-photo {
    aspect-ratio: 16 / 10;
  }

  .review-marquee {
    overflow-x: auto;
    padding-bottom: 8px;
    mask-image: none;
  }

  .review-track {
    animation: none;
  }

  .review-card {
    flex-basis: min(82vw, 340px);
  }

  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .btn {
    width: 100%;
  }

  .hero-content {
    margin-bottom: 42px;
  }

  .brand-logo {
    width: 38px;
    height: 28px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .service-grid {
    gap: 16px;
  }
}
