/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--primary-dark);
  background: #ffffff;
}

/* ================= COLORI ================= */
:root {
  --primary: #0b4f6c;
  --primary-dark: #08384d;
  --light-blue: #e6f4fa;
  --accent: #ee9b00;
  --accent-hover: #ca6702;

  --footer-bg: #2d89c6;
  --footer-text: #eaf4ff;
  --footer-heading: #ffffff;
  --footer-link-hover: #ffffff;

  --menu-bg: rgba(45, 137, 198, 0.45);
  --menu-bg-scrolled: rgba(45, 137, 198, 0.95);

  --section-bg: #ffffff;
  --section-alt: #f4f9fc;
  --card-bg: #f7fbff;
  --card-bg-soft: #eef7fc;
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

:focus-visible {
  outline: 3px solid var(--accent);
}

/* ================= TOP BAR ================= */
.top-bar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background: #ffffff;
  z-index: 110;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.top-bar-container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

.top-bar-container .top-logo {
  height: 100%;
  width: auto;
  display: block;
}

.top-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* ================= NAV ================= */
.main-nav {
  position: fixed;
  top: 100px;
  width: 100%;
  z-index: 100;
  background: var(--menu-bg);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, top 0.4s ease;
}

.main-nav.at-top {
  top: 0;
}

.main-nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -60px;
  width: 100%;
  height: 60px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(45, 137, 198, 0.35), rgba(0, 0, 0, 0));
}

.main-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(
    to bottom,
    rgba(11, 79, 108, 0.65),
    rgba(11, 79, 108, 0.25)
  );
  z-index: -1;
}

.main-nav.scrolled {
  background: var(--menu-bg-scrolled);
}

.main-nav.scrolled::before {
  opacity: 0;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.main-nav.show-brand .brand {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.logo-img {
  height: 36px;
}

.logo-text {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

/* MENU LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-direction: row;
}

.nav-links a {
  position: relative;
  color: var(--light-blue);
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 4px;
  transition: color 0.3s ease;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* MOBILE TOGGLE */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: calc(85vh + 150px);
  min-height: 600px;
  overflow: hidden;
  background: #0b4f6c;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(11, 79, 108, 0.8), rgba(11, 79, 108, 0));
  z-index: 1;
}

/* HERO SLIDER */
.hero-slider {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.6s ease, transform 4.0s ease;
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
}

.slide.zooming {
  transform: scale(1.05);
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* HERO BUTTONS */
.btn-primary,
.btn-uniform,
.home-experience .btn-uniform {
  background-color: var(--accent) !important;
  color: #fff;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover,
.btn-uniform:hover,
.home-experience .btn-uniform:hover {
  background-color: var(--accent-hover) !important;
  transform: translateY(-2px);
}

/* ================= CONTENUTO GENERICO ================= */
.content {
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: auto;
}

/* ================= HOME ABOUT ================= */
.home-about {
  background: var(--section-bg);
  padding: 5rem 1.5rem;
}

.about-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  background: var(--light-blue);
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* CARD ELEGANTE RIUTILIZZABILE */
.card-highlight {
  background: var(--light-blue);
  padding: 2rem;
  border-radius: 14px;
  border-right: 3px solid var(--accent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0,0,0,0.12);
}

/* SOLO PAGINA HOTEL */
body.hotel-page .about-text {
  border-right: 3px solid var(--accent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body.hotel-page .about-text:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0,0,0,0.12);
}


.about-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease, outline 0.3s ease;
  cursor: pointer;
}

.about-image img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
  box-shadow:
    0 0 0 3px var(--accent),
    0 12px 25px rgba(0, 0, 0, 0.2);
}

/* ================= MINI-GALLERY ================= */
.additional-photos {
  max-width: 1200px;
  margin: 40px auto 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.additional-photos figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.additional-photos img.gallery-img {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, outline 0.3s ease;
  border-radius: 8px;
}

.additional-photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(.2, .6, .2, 1), filter 0.35s ease;
}

.additional-photos figure:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.additional-photos figure:hover {
  box-shadow:
    0 0 0 2px var(--accent),
    0 18px 35px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}

.additional-photos figcaption {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 6px;
  color: var(--primary-dark);
}

/* ================= HOME FEATURES ================= */
.home-features {
  padding: 6rem 1.5rem;
  background: linear-gradient(to bottom, #ffffff 0%, #f4f9fc 100%);
}

.features-wrapper {
  max-width: 1200px;
  margin: auto;
}

.features-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.features-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
}

.features-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--primary-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature-card {
  text-align: center;
  padding: 2.8rem 2rem;
  border-radius: 14px;
  background: #f4f9fc;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 2.5rem;
  color: var(--accent);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.2rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================= HOME EXPERIENCE ================= */
.home-experience {
  padding: 6rem 1.5rem;
  background: #ffffff;
}

.experience-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.experience-text {
  background: var(--card-bg-soft);
  max-width: 520px;
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  border-right: 3px solid var(--accent);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.experience-text:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.12);
}

.experience-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.experience-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: var(--primary-dark);
}

.experience-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.6s ease;
}

.experience-image img:hover {
  transform: scale(1.04);
}

.experience-image {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.experience-image iframe {
  width: 100%;
  aspect-ratio: 4 / 3;   /* rapporto naturale mappa */
  border: 0;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ================= MAPPA ================= */

.map-section {
  padding: 4rem 1.5rem 5rem;
  background: #ffffff;
}

.map-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.map-text h2 {
  margin-bottom: 1rem;
}

.map-text p {
  line-height: 1.7;
}

.map-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(238,155,0,0.4);
}

.map-link:hover {
  color: var(--accent-hover);
}

/* MAPPA */
.map-box iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* MOBILE */
@media (max-width: 768px) {
  .map-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ================= HOME REVIEWS ================= */
.home-reviews {
  padding: 6rem 1.5rem;
  background: linear-gradient(to right, #f4f9fc 0%, #ffffff 100%);
  text-align: center;
}

.reviews-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home-reviews h2,
.reviews-left h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.reviews-subtitle {
  max-width: 650px;
  margin: 0 auto 3rem auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--primary-dark);
}

.home-reviews iframe {
  max-width: 100%;
}

.home-reviews > div,
.reviews-container > div {
  display: flex;
  justify-content: center;
}

.reviews-left h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.rating-big {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.rating-score {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
}

.rating-max {
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.rating-stars {
  font-size: 1.8rem;
  color: #ee9b00;
  margin-bottom: 1rem;
}

.reviews-count {
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.reviews-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: start;
  align-items: center;
}

.tripadvisor-desktop {
  display: flex !important;
  justify-content: center !important;
  max-width: 468px;
  margin: auto;
}

.tripadvisor-mobile {
  display: none !important;
}

.tripadvisor-desktop iframe,
.tripadvisor-mobile iframe,
.tripadvisor-widget iframe,
.google-widget iframe {
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
}

.tripadvisor-widget,
.google-widget {
  max-width: 100%;
}

/* CARD RECENSIONI HOMEPAGE */
.reviews-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.reviews-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.reviews-badge {
  display: inline-block;
  background: #34e0a1;
  color: #000;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.reviews-card iframe {
  max-width: 100%;
}

.reviews-proof {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #666;
}

/* ================= RIEPILOGO PREVENTIVO ================= */
.riepilogo-box {
  margin-top: 25px;
  padding: 20px;
  background: #f4f9fc;
  border-radius: 10px;
  border: 1px solid #d0e3ef;
}

.riepilogo-box h3 {
  margin-bottom: 15px;
}

#totalePreventivo {
  margin-top: 15px;
  font-size: 1.4rem;
  color: var(--accent);
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 0;
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-col h3,
.footer-col h4 {
  color: var(--footer-heading);
  margin-bottom: 1rem;
}

.footer-col p {
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.footer-col a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--footer-link-hover);
}

.footer-bottom {
  background: var(--footer-bg);
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--footer-text);
}

.footer-bottom small {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ================= LIGHTBOX GALLERY ================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0 15px;
  transition: color 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #ffcc00;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

/* ================= SCROLL ANIMATION ================= */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .nav-links {
    gap: 1rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text h2 {
    font-size: 1.7rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .experience-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .reviews-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .reviews-right {
    gap: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col ul {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .additional-photos img {
    width: 90%;
    max-width: none;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
  }

  .additional-photos figure {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .additional-photos {
    grid-template-columns: 1fr;
  }

  .additional-photos img {
    height: auto;
  }

  .experience-container {
    display: block;
    max-width: 95%;
    margin: 0 auto;
  }

  .experience-text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem !important;
    border-right: none !important;
    box-sizing: border-box;
  }

  .experience-text h2 {
    font-size: 1.6rem !important;
    line-height: 1.4 !important;
  }

  .experience-text p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  .tripadvisor-mobile-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .tripadvisor-mobile-wrapper iframe,
  .tripadvisor-mobile iframe {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 700px) {
  .hero {
    height: calc(85vh + 120px);
    min-height: 570px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11, 79, 108, 0.98);
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 0;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .main-nav.scrolled .brand {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .top-bar {
    height: 70px;
  }

  .top-logo {
    height: 45px;
  }

  .main-nav {
    top: 70px;
  }

  .tripadvisor-desktop {
    display: none !important;
  }

  .tripadvisor-mobile {
    display: flex !important;
    justify-content: center !important;
    max-width: 240px;
    margin: auto;
  }
}

.about-text.card-highlight {
  border-right: 3px solid var(--accent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}

.about-text.card-highlight:hover {
  transform: translateY(-6px); /* leggermente più evidente */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  border-right-color: var(--accent-hover); /* piccolo effetto raffinato */
}


.prenotazione-intro {
  max-width: 800px;
  margin: 0 auto 1rem auto;
  text-align: center;
  padding: 0 1rem;
  margin-top: 2.5rem;
}

.prenota-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 0.5rem;
  padding-top: 1rem;
}

.prenota-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.prenota-note {
  font-size: 0.9rem;
  color: #666;
}