/* =========================
   Villa Febe Paestum
   Sito statico HTML/CSS/JS
   ========================= */

:root {
  --blue: #0a6c88;
  --blue-dark: #07374a;
  --sand: #f4e3c4;
  --sand-light: #fff8ed;
  --terracotta: #c56b43;
  --green: #2f8d6d;
  --text: #17313a;
  --muted: #65777d;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(8, 47, 61, 0.18);
  --radius: 26px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--sand-light);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 76px;
  padding: 0 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 248, 237, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13, 97, 120, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(8, 47, 61, 0.16);
  border: 3px solid #fff;
}

.logo strong {
  display: block;
  line-height: 1;
}

.logo small {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(8, 47, 61, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 99px;
}

.hero {
  min-height: 100vh;
  padding: 130px 6% 70px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(7, 55, 74, 0.84), rgba(10, 108, 136, 0.32)),
    url("assets/esterno-villa.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(244, 227, 196, 0.25);
  right: -140px;
  bottom: -160px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  color: var(--white);
}

.eyebrow {
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.hero .eyebrow {
  color: #ffd7a8;
}

h1 {
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 790px;
  font-size: 1.22rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-subtitle strong {
  color: #fff;
}

.hero-actions,
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 12px 25px rgba(197, 107, 67, 0.28);
}

.btn-primary:hover {
  background: #a95434;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-dark);
}

.btn-map {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 12px 25px rgba(47, 141, 109, 0.26);
}

.btn-map:hover {
  background: #236f55;
}

.distance-cards {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
}

.distance-cards div {
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.distance-cards strong {
  display: block;
  font-size: 1.08rem;
}

.distance-cards span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  line-height: 1.35;
}

.section {
  padding: 100px 6%;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.two-columns {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.intro-section p,
.split-section p,
.contact-section p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.mini-list {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.mini-list span {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(8, 47, 61, 0.06);
  font-weight: 700;
}

.image-card,
.map-card,
.contact-form,
.reviews-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-card {
  padding: 12px;
}

.image-card img {
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.soft-bg {
  background: linear-gradient(180deg, #f9edda, #fff8ed);
}

.section-title {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-title p {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 18px;
}

.gallery-item {
  border: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(8, 47, 61, 0.12);
  background: var(--white);
}

.gallery-item.big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.gallery-item:hover img {
  transform: scale(1.06);
}

.reviews-box {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px;
  background:
    radial-gradient(circle at 15% 15%, rgba(244, 227, 196, 0.95), transparent 34%),
    linear-gradient(135deg, #ffffff, #f7f9f8);
  text-align: center;
}

.reviews-box p {
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 1.04rem;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--white);
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(8, 47, 61, 0.07);
}

.contact-row span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--sand);
  font-size: 1.35rem;
}

.contact-row small {
  color: var(--muted);
}

.contact-form {
  padding: 34px;
}

.contact-form h3 {
  margin-bottom: 22px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 800;
}

.contact-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(13, 97, 120, 0.16);
  border-radius: 15px;
  background: #fbfbfb;
  font: inherit;
  outline: none;
}

.contact-form input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(197, 107, 67, 0.12);
}

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 14px;
  color: var(--muted);
}

.map-card {
  padding: 46px 30px;
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(244, 227, 196, 0.9), transparent 34%),
    linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
}

.map-pin {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 2.3rem;
}

.map-card h3 {
  font-size: 2rem;
}

.distance-strip {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.distance-strip div {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 12px 28px rgba(8, 47, 61, 0.10);
  text-align: center;
}

.distance-strip strong {
  display: block;
  font-size: 1.55rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.distance-strip span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

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

.service-card {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(8, 47, 61, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--sand);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.service-card h3 {
  margin-bottom: 10px;
}

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

.footer {
  padding: 36px 6%;
  text-align: center;
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.78);
}

.footer p:first-child {
  color: var(--white);
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--terracotta);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.2s ease;
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 21, 27, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-height: 86vh;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  z-index: 2001;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.05);
}

.lightbox-close:hover {
  transform: scale(1.05);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.excursions-section {
  background: var(--white);
}

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

.excursion-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(8, 47, 61, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.excursion-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.excursion-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.excursion-content {
  padding: 22px 22px 24px;
}

.excursion-content h3 {
  margin-bottom: 10px;
}

.excursion-content p {
  color: var(--muted);
}

.whatsapp-info-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   VERSIONE TABLET
   Rimane ordinata ma non diventa una linea stretta
   ========================= */

@media (max-width: 1050px) {
  .distance-cards,
  .distance-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    gap: 14px;
  }
}

/* =========================
   VERSIONE TELEFONO COME PC
   Il sito mantiene la larghezza desktop.
   Da telefono si puÃƒÂ² scorrere lateralmente.
   ========================= */

@media (max-width: 920px) {
  html,
  body {
    width: 1180px;
    min-width: 1180px;
    overflow-x: auto;
  }

  body {
    overflow-y: auto;
  }

  .site-header {
    width: 1180px;
    min-width: 1180px;
    left: 0;
    right: auto;
  }

  .menu-toggle {
    display: none !important;
  }

  .nav {
    position: static;
    display: flex !important;
    align-items: center;
    gap: 22px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0;
  }

  .container {
    max-width: 1180px;
  }

  .two-columns {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-item.big {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

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

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

  .hero {
    min-height: 100vh;
    padding-top: 130px;
  }

  .section {
    padding: 100px 6%;
  }

  .hero-actions,
  .booking-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .btn {
    width: auto;
  }

  .distance-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .lightbox {
    width: 100vw;
    min-width: 100vw;
  }

  .lightbox img,
  #lightboxImage {
    max-width: 90vw;
    max-height: 86vh;
  }

  .lightbox-arrow {
    width: 54px;
    height: 54px;
    font-size: 2.6rem;
  }

  .lightbox-prev {
    left: 24px;
  }

  .lightbox-next {
    right: 24px;
  }
  /* TESTO MOLTO PIÃ™ GRANDE DA TELEFONO */
  body {
    font-size: 34px !important;
  }

  p,
  li,
  span,
  small,
  input,
  label,
  .nav a,
  .btn,
  .contact-row,
  .service-card p,
  .excursion-content p,
  .reviews-box p,
  .hero-subtitle,
  .mini-list span,
  .section-title p,
  .form-note {
    font-size: 30px !important;
    line-height: 1.75 !important;
  }

  h1 {
    font-size: 150px !important;
    line-height: 0.9 !important;
  }

  h2 {
    font-size: 76px !important;
    line-height: 1.05 !important;
  }

  h3 {
    font-size: 42px !important;
    line-height: 1.25 !important;
  }

  .eyebrow {
    font-size: 25px !important;
    letter-spacing: 0.12em !important;
  }

  .distance-cards strong,
  .distance-strip strong {
    font-size: 46px !important;
  }

  .distance-cards span,
  .distance-strip span {
    font-size: 27px !important;
    line-height: 1.45 !important;
  }

  .logo strong {
    font-size: 30px !important;
  }

  .logo small {
    font-size: 24px !important;
  }

  .contact-row small {
    font-size: 25px !important;
  }

  .contact-row span {
    width: 70px !important;
    height: 70px !important;
    font-size: 34px !important;
  }

  .btn {
    min-height: 82px !important;
    padding: 24px 38px !important;
    font-size: 30px !important;
  }

  .service-card,
  .excursion-content,
  .reviews-box,
  .contact-form,
  .mini-list span {
    font-size: 30px !important;
  }

  .service-icon {
    width: 78px !important;
    height: 78px !important;
    font-size: 38px !important;
  }

}
