:root {
  --bg: #f7f4ef;
  --paper: #fffdf8;
  --white: #ffffff;
  --gold: #8d7348;
  --gold-light: #b39a68;
  --text: #4d4539;
  --muted: #81745f;
  --dark: #17130e;
  --radius: 18px;
  --big-radius: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

a:focus,
button:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Nasconde Behold se il blocco è rimasto per errore nell'HTML */
behold-widget {
  display: none !important;
}

/* HEADER / HERO */
.hero {
  position: relative;
  padding: 46px 135px 54px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  background: var(--paper);
  text-align: center;
  min-height: auto !important;
}

.hero-inner {
  width: min(1220px, 100%);
  position: relative;
  z-index: 2;
  text-align: center;
}

.logo {
  width: clamp(150px, 16vw, 230px) !important;
  height: auto;
  margin: 0 auto 28px !important;
  filter: invert(42%) sepia(30%) saturate(750%) hue-rotate(4deg) brightness(88%) contrast(88%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  font-size: clamp(30px, 2.6vw, 46px) !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase;
  white-space: nowrap !important;
  line-height: 1.1 !important;
}

h2 {
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0.075em;
}

.hero-subtitle {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  letter-spacing: 0.035em;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  min-width: 180px;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(141, 115, 72, 0.22);
}

.btn-secondary {
  border: 1px solid rgba(141, 115, 72, 0.45);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.8);
}

/* FOTO MARE GRANDE */
.sea-section {
  width: 100%;
  padding: 0 24px 64px;
  margin: 0 !important;
  background: var(--paper);
  position: relative;
  z-index: 3;
}

.wide-image {
  width: min(1180px, 100%);
  height: clamp(330px, 45vw, 560px);
  margin: 0 auto;
  object-fit: cover;
  border-radius: var(--big-radius);
  box-shadow: 0 22px 60px rgba(34, 28, 19, 0.16);
}

/* TESTO DESCRITTIVO */
.description-section {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 24px;
  margin: 0 !important;
  background: var(--paper);
  overflow: hidden;
  width: 100% !important;
}

.description-box {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.description-box p {
  margin: 0 0 32px;
  color: var(--gold);
  font-size: clamp(19px, 2vw, 27px);
  line-height: 2.05;
  letter-spacing: 0.075em;
  font-weight: 300;
}

.description-box p:last-child {
  margin-bottom: 0;
}

/* EVENTUALI FEATURES */
.features-section {
  width: min(1080px, calc(100% - 32px));
  margin: 70px auto 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  padding: 28px 18px;
  text-align: center;
  background: var(--paper);
  border-radius: 22px;
  border: 1px solid rgba(141, 115, 72, 0.12);
}

.feature span {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.feature p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* GALLERY */
.gallery-section {
  width: 100% !important;
  padding: clamp(70px, 8vw, 110px) 24px;
  margin: 0 !important;
  background: #f9f9f8;
  text-align: center;
}

.gallery-section .section-kicker {
  margin-bottom: 10px;
}

.gallery-section h2 {
  max-width: none !important;
  margin: 0 auto;
  text-transform: none;
  font-size: clamp(28px, 2.55vw, 42px) !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  letter-spacing: 0.065em;
}

.gallery-grid {
  width: min(1080px, 100%);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-item {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none !important;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: brightness(1.04);
}

/* CONTATTI */
.contact-section {
  width: 100% !important;
  position: relative;
  padding: clamp(95px, 12vw, 170px) 24px clamp(90px, 10vw, 150px);
  margin: 0 !important;
  background: var(--paper);
  overflow: hidden;
}

.contact-card {
  position: relative;
  z-index: 2;
  width: min(1220px, 100%) !important;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 90px) !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.contact-card > div {
  min-width: 0;
}

.contact-card h2 {
  color: var(--gold);
  font-size: clamp(27px, 2.25vw, 36px) !important;
  letter-spacing: 0.055em;
  line-height: 1.12 !important;
  white-space: nowrap !important;
  text-transform: none;
}

.contact-lines {
  margin-top: 30px;
  display: grid;
  gap: 6px;
}

.contact-lines a {
  color: var(--gold);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: 0.045em;
}

.contact-lines a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.social-icons a {
  width: auto !important;
  height: auto !important;
  min-width: 0;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  background: transparent !important;
  color: var(--gold);
  border: 0 !important;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
  opacity: 0.78;
  box-shadow: none !important;
}

.social-icons i {
  font-size: clamp(38px, 4vw, 58px) !important;
}

.social-icons span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* FOOTER */
footer {
  padding: 34px 20px 42px;
  text-align: center;
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
}

footer p {
  margin: 0;
}

.footer-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gold);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* DECORAZIONI MARINE */
.decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.30;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 1;
}

.decor-coral {
  background-image: url("images/decor-coral.png");
}

.decor-shell {
  background-image: url("images/decor-shell.png");
}

.decor-starfish {
  background-image: url("images/decor-starfish.png");
}

.decor-coral-top {
  width: 185px !important;
  height: 185px !important;
  right: 28px !important;
  top: 28px !important;
  bottom: auto !important;
  transform: rotate(-8deg);
}

.decor-shell-bottom {
  width: 155px !important;
  height: 155px !important;
  left: 24px !important;
  bottom: 24px !important;
  transform: rotate(12deg);
}

.decor-left {
  width: 245px;
  height: 245px;
  left: 18px;
  top: 45px;
  transform: rotate(-18deg);
}

.decor-right {
  width: 250px;
  height: 250px;
  right: 24px;
  top: 90px;
  bottom: auto;
  transform: rotate(10deg);
}

.decor-contact-left {
  width: 330px;
  height: 330px;
  left: 22px;
  bottom: 22px;
  transform: rotate(-8deg);
}

.decor-contact-right {
  width: 260px;
  height: 260px;
  right: 24px;
  bottom: 22px;
  top: auto;
  transform: rotate(10deg);
}

/* LIGHTBOX FOTO GRANDE */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(15, 12, 8, 0.88);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(1120px, 88vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  width: 58px;
  height: 72px;
  border-radius: 999px;
  font-size: 58px;
  line-height: 1;
}

.lightbox-prev {
  left: 22px;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 22px;
  transform: translateY(-50%);
}

/* TABLET */
@media (max-width: 1100px) {
  .hero {
    padding: 42px 42px 46px !important;
  }

  h1,
  .gallery-section h2,
  .contact-card h2 {
    white-space: normal !important;
  }

  .decor-coral-top {
    width: 140px !important;
    height: 140px !important;
    right: 16px !important;
    top: 20px !important;
  }

  .decor-shell-bottom {
    width: 120px !important;
    height: 120px !important;
    left: 16px !important;
    bottom: 18px !important;
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .contact-card {
    grid-template-columns: 1fr;
    gap: 58px;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .contact-lines {
    justify-items: center;
  }
}

/* TELEFONO */
@media (max-width: 620px) {
  .hero {
    padding: 30px 18px 24px !important;
  }

  .logo {
    width: 170px !important;
    margin-bottom: 24px !important;
  }

  .eyebrow,
  .section-kicker {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  h1 {
    font-size: clamp(28px, 8vw, 40px) !important;
    letter-spacing: 0.1em !important;
    white-space: normal !important;
  }

  h2 {
    font-size: clamp(29px, 8vw, 40px);
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 26px;
  }

  .btn {
    width: 100%;
  }

  .sea-section {
    padding: 0 14px 44px;
  }

  .wide-image {
    height: 330px;
    border-radius: 22px;
  }

  .description-section {
    padding: 54px 22px 64px;
  }

  .description-box p {
    font-size: 17px;
    line-height: 1.85;
    letter-spacing: 0.035em;
    margin-bottom: 24px;
  }

  .features-section {
    grid-template-columns: 1fr;
    margin-bottom: 60px;
  }

  .gallery-section {
    padding: 56px 18px 70px;
  }

  .gallery-section h2,
  .contact-card h2 {
    white-space: normal !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 34px;
  }

  .gallery-item img {
    aspect-ratio: 1 / 1;
  }

  .contact-section {
    padding: 72px 22px 100px;
  }

  .contact-card {
    gap: 48px;
  }

  .contact-lines a {
    font-size: 22px;
  }

  .social-icons {
    gap: 22px;
  }

  .social-icons i {
    font-size: 44px !important;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox img {
    max-width: 94vw;
    max-height: 74vh;
  }

  .lightbox-close {
    width: 46px;
    height: 46px;
    top: 14px;
    right: 14px;
  }

  .lightbox-arrow {
    width: 44px;
    height: 58px;
    font-size: 42px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .decor {
    opacity: 0.18;
  }

  .decor-coral-top {
    width: 105px !important;
    height: 105px !important;
    right: 8px !important;
    top: 18px !important;
  }

  .decor-shell-bottom {
    width: 88px !important;
    height: 88px !important;
    left: 8px !important;
    bottom: 12px !important;
  }

  .decor-left {
    width: 190px;
    height: 190px;
    left: -40px;
    top: 20px;
  }

  .decor-right {
    width: 210px;
    height: 210px;
    right: -45px;
    top: 80px;
  }

  .decor-contact-left {
    width: 230px;
    height: 230px;
    left: -40px;
    bottom: -30px;
  }

  .decor-contact-right {
    width: 200px;
    height: 200px;
    right: -35px;
    bottom: -25px;
  }
}
