/* ============================================
   CSS Variables - Brand Colors
   ============================================ */
:root {
  --colore-secondario-chiaro: #c1dfd6;
  --colore-secondario-scuro: #9eccc2;
  --colore-terziario: #fedaa1;
  --colore-quaternario-chiaro: #8fd0dc;
  --colore-quaternario-scuro: #73c2cd;
  --colore-accent-scuro: #e3312d;
  --colore-accent-chiaro: #ffef26;
  --colore-primario-chiaro: #189db3;
  --colore-primario-scuro: #1c8791;
  
  /* Additional variables */
  --white: #ffffff;
  --black: #000000;
  --text-dark: #1a1a1a;
  --text-light: #4a4a4a;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Font Domine per h1 e h2 */
h1, h2 {
  font-family: 'Domine', serif;
}

/* Font Lato per h3, p e testi generici */
h3, p, body, a, li, span, div {
  font-family: 'Lato', sans-serif;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: 'Domine', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--colore-primario-scuro);
  margin-bottom: 1rem;
  text-align: center;
}

.section-title-small {
  font-size: 2rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 3rem;
}

/* ============================================
   NavBar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  transition: var(--transition);
  padding: 0.5rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1;
}

.nav-menu-left {
  justify-content: flex-start;
}

.nav-menu-right {
  justify-content: flex-end;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  width: 100%;
  height: 100%;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--colore-primario-scuro);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: linear-gradient(90deg, var(--colore-accent-scuro) 0%, var(--colore-accent-chiaro) 100%);
  transition: var(--transition);
  border-radius: 2px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-image: url('public/foto/TheRisingSun-24.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(28, 135, 145, 0.7) 0%, rgba(24, 157, 179, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.hero-title {
  font-family: 'Domine', serif;
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Prenota Section
   ============================================ */
.prenota-section {
  padding: 5rem 20px;
  background-color: rgba(143, 208, 220, 0.3); 
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border-radius: 100px 0px 100px 0px;
  overflow: hidden;
}

.booking-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.booking-logo {
  display: block;
  transition: var(--transition);
  border-radius: 10px;
  overflow: hidden;
}

.booking-logo:hover {
  transform: translateY(-5px);
}

.booking-logo img {
  width: 200px;
  height: auto;
  display: block;
}

/* ============================================
   Holidu Section
   ============================================ */
.holidu-section {
  padding: 5rem 0;
  background-color: var(--white);
  position: relative;
  z-index: 1;
}

.holidu-snippet {
  margin-top: 2rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 2rem;
}

.placeholder-text {
  color: var(--text-light);
  font-style: italic;
}

/* ============================================
   Mappa e Punti Forza Section
   ============================================ */
.mappa-punti-section {
  padding: 5rem 0;
  background-color: var(--white);
  position: relative;
  z-index: 1;
}

.mappa-punti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.punti-forza {
  padding-right: 2rem;
}

.punti-forza-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.punto-forza {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: rgba(143, 208, 220, 0.3); 
  border-radius: 10px;
  transition: var(--transition);
}

.punto-forza:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 15px var(--shadow);
}

.punto-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--colore-primario-scuro);
}

.punto-icon svg {
  width: 100%;
  height: 100%;
}

.punto-content h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  color: var(--colore-primario-scuro);
  margin-bottom: 0.5rem;
}

.punto-content p {
  color: var(--text-light);
  line-height: 1.7;
}

.mappa-container {
  position: sticky;
  top: 100px;
}

.mappa-wrapper {
  width: 100%;
  height: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
}

.mappa-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* ============================================
   Gallery Section - Masonry Layout
   ============================================ */
.gallery-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%),
              linear-gradient(180deg, var(--colore-quaternario-chiaro) 0%, var(--colore-quaternario-scuro) 100%);
  position: relative;
  z-index: 1;
}

.gridywrap {
  width: 100%;
  margin-top: 3rem;
  overflow: hidden;
}

.gridywrap .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--shadow);
  transition: var(--transition);
  float: left;
  padding: 0;
  background: transparent;
  margin: 1px;
  box-sizing: border-box;
  clear: none;
}

/* Fix per evitare margini superiori eccessivi */
.gridywrap::after {
  content: "";
  display: table;
  clear: both;
}

.gridywrap .gridy-1,
.gridywrap .gridy-2,
.gridywrap .gridy-3 {
  width: calc(100% - 2px);
  overflow: hidden;
}

.gridywrap .gridyhe-1 {
  height: 320px;
}

.gridywrap .gridyhe-2 {
  height: 320px;
}

.gridywrap .gridimg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
}

.gridywrap .gridimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

/* Media Queries per layout responsive */
@media screen and (min-width: 640px) {
  .gridywrap .gridyhe-2 {
    height: 320px;
  }
  .gridywrap {
    width: 100%;
  }
  .gridywrap .gridy-1 {
    width: calc(50% - 2px);
  }
  .gridywrap .gridy-2 {
    width: calc(50% - 2px);
  }
  .gridywrap .gridy-3 {
    width: calc(100% - 2px);
  }
}

@media screen and (min-width: 1024px) {
  .gridywrap .gridy-1 {
    width: calc(33.333% - 2px);
  }
  .gridywrap .gridy-2 {
    width: calc(66.666% - 2px);
  }
  .gridywrap .gridy-3 {
    width: calc(100% - 2px);
  }
  .gridywrap .gridyhe-2 {
    height: 640px;
  }
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(28, 135, 145, 0.85) 0%, rgba(24, 157, 179, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

.gallery-item:hover {
  box-shadow: 0 8px 25px var(--shadow-hover);
  transform: translateY(-5px);
}

.gallery-icon {
  width: 48px;
  height: 48px;
  color: var(--white);
  stroke-width: 2;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 3rem;
  color: var(--white);
  cursor: pointer;
  z-index: 2001;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--colore-accent-chiaro);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: var(--white);
  cursor: pointer;
  z-index: 2001;
  padding: 20px;
  transition: var(--transition);
  user-select: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--colore-accent-chiaro);
}

/* ============================================
   Selinunte Section
   ============================================ */
.selinunte-section {
  padding: 5rem 0;
  background-color: var(--white);
  position: relative;
  z-index: 1;
}

.selinunte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.selinunte-content {
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.selinunte-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.1rem;
}

.selinunte-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  display: flex;
  align-items: stretch;
}

.selinunte-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.selinunte-image:hover img {
  transform: scale(1.05);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%),
              linear-gradient(180deg, var(--white) 0%, var(--colore-accent-chiaro) 50%, var(--colore-accent-scuro) 100%);
  color: var(--white);
  padding: 6rem 0 3rem;
}

/* Footer Main Section */
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 120px;
  width: auto;
  display: block;
}

.footer-center {
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-prenota-title {
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.footer-booking-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-booking-links a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  font-family: 'Lato', sans-serif;
}

.footer-booking-links a:hover {
  color: var(--colore-primario-chiaro);
  padding-left: 5px;
}

.footer-right {
  text-align: right;
}

.footer-contacts-title {
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contacts p {
  margin: 0;
  color: var(--text-dark);
  font-family: 'Lato', sans-serif;
}

.footer-contacts .footer-phone {
  color: var(--colore-primario-scuro);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-contacts .footer-phone:hover {
  color: var(--colore-primario-chiaro);
  text-decoration: underline;
  line-height: 1.6;
}

/* Footer Bottom Section */
.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Lato', sans-serif;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom-left span {
  color: var(--text-dark);
}

.sicilean-logo {
  height: 1em;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}

.footer-bottom-left a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-left: auto;
}

.footer-policy-link {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  font-family: 'Lato', sans-serif;
}

.footer-policy-link:hover {
  color: var(--colore-primario-chiaro);
  text-decoration: underline;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 968px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .nav-menu-left,
  .nav-menu-right {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 27px var(--shadow);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu-left.active,
  .nav-menu-right.active {
    left: 0;
  }

  /* Menu-right nel mobile: box-shadow solo sul primo menu */
  .nav-menu-right.active {
    box-shadow: none;
  }

  .nav-menu-left li,
  .nav-menu-right li {
    width: 100%;
    padding: 1rem 0;
  }

  .nav-link {
    color: var(--text-dark);
    display: block;
    width: 100%;
  }

  .nav-logo-wrapper {
    position: relative;
    left: auto;
    transform: none;
    width: 80px;
    height: 80px;
    margin-top: 0;
  }

  .logo-img {
    height: 80px;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-title-small {
    font-size: 1.6rem;
  }

  .mappa-punti-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mappa-container {
    position: static;
  }

  .mappa-wrapper {
    height: 400px;
  }

  .punti-forza {
    padding-right: 0;
  }

  .selinunte-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .selinunte-content {
    padding-right: 0;
    order: 1;
  }

  .selinunte-image {
    order: 2;
  }


  .booking-carousel {
    gap: 2rem;
  }

  .booking-logo img {
    width: 150px;
  }

  .footer-main {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .footer-left {
    justify-content: center;
  }

  .footer-center {
    align-items: center;
    text-align: center;
  }

  .footer-booking-links {
    align-items: center;
  }

  .footer-right {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-left,
  .footer-bottom-right {
    justify-content: center;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-title-small {
    font-size: 1.4rem;
  }

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


  .booking-logo img {
    width: 120px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 10px;
  }

  .lightbox-close {
    font-size: 2rem;
    top: 10px;
    right: 20px;
  }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

:focus-visible {
  outline: 3px solid var(--colore-primario-chiaro);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
  display: block;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
  }
  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
}

/* ============================================
   Cookie Floating Button
   ============================================ */
.cookie-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--colore-accent-scuro) 0%, var(--colore-accent-chiaro) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(227, 51, 45, 0.4);
  z-index: 1000;
  transition: var(--transition);
  animation: cookiePulse 2s infinite;
}

.cookie-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(227, 51, 45, 0.6);
}

.cookie-float svg {
  width: 32px;
  height: 32px;
}

@keyframes cookiePulse {
  0% {
    box-shadow: 0 4px 15px rgba(227, 51, 45, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(227, 51, 45, 0.6);
  }
  100% {
    box-shadow: 0 4px 15px rgba(227, 51, 45, 0.4);
  }
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 32px;
    height: 32px;
  }

  .cookie-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    left: 20px;
  }

  .cookie-float svg {
    width: 28px;
    height: 28px;
  }

  .footer-logo {
    height: 100px;
  }

  .footer-contacts-title {
    font-size: 1.3rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-right {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ============================================
   Wave Separators
   ============================================ */
.wave-separator {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: visible;
  margin: 0;
  padding: 0;
  z-index: 2;
  line-height: 0;
  margin-top: -60px;
}

.wave-separator .editorial {
  display: block;
  width: 100%;
  height: 60px;
  max-height: 60px;
  margin: 0;
  z-index: 1;
  position: relative;
  transform: scaleY(-1);
}

.wave-separator-inverted .editorial {
  transform: none;
}

.wave-separator-gallery {
  z-index: 100 !important;
  position: relative;
}

.wave-separator-gallery .editorial {
  z-index: 100 !important;
  position: relative;
}

.wave-separator .parallax1 > use {
  animation: move-forever1 10s linear infinite;
}

.wave-separator .parallax1 > use:nth-child(1) {
  animation-delay: -2s;
}

.wave-separator .parallax2 > use {
  animation: move-forever2 8s linear infinite;
}

.wave-separator .parallax2 > use:nth-child(1) {
  animation-delay: -2s;
}

.wave-separator .parallax3 > use {
  animation: move-forever3 6s linear infinite;
}

.wave-separator .parallax3 > use:nth-child(1) {
  animation-delay: -2s;
}

.wave-separator .parallax4 > use {
  animation: move-forever4 4s linear infinite;
}

.wave-separator .parallax4 > use:nth-child(1) {
  animation-delay: -2s;
}

@keyframes move-forever1 {
  0% {
    transform: translate(85px, 0%);
  }
  100% {
    transform: translate(-90px, 0%);
  }
}

@keyframes move-forever2 {
  0% {
    transform: translate(-90px, 0%);
  }
  100% {
    transform: translate(85px, 0%);
  }
}

@keyframes move-forever3 {
  0% {
    transform: translate(85px, 0%);
  }
  100% {
    transform: translate(-90px, 0%);
  }
}

@keyframes move-forever4 {
  0% {
    transform: translate(-90px, 0%);
  }
  100% {
    transform: translate(85px, 0%);
  }
}

@media (max-width: 640px) {
  .wave-separator {
    height: 40px;
  }

  .wave-separator .editorial {
    height: 40px;
    max-height: 40px;
  }
}

/* ============================================
   Policy Pages (Privacy & Cookie)
   ============================================ */
.policy-section {
  padding: 8rem 0 5rem;
  background-color: var(--white);
  min-height: 100vh;
}

.policy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.policy-title {
  font-family: 'Domine', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--colore-primario-scuro);
  margin-bottom: 1rem;
  text-align: center;
}

.policy-last-update {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  font-style: italic;
}

.policy-text {
  color: var(--text-dark);
  line-height: 1.8;
}

.policy-text h2 {
  font-family: 'Domine', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--colore-primario-scuro);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.policy-text h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--colore-primario-scuro);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.policy-text p {
  margin-bottom: 1.2rem;
  color: var(--text-light);
  font-size: 1rem;
}

.policy-text ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

.policy-text ul li {
  margin-bottom: 0.8rem;
  color: var(--text-light);
  line-height: 1.7;
}

.policy-text ul li strong {
  color: var(--colore-primario-scuro);
  font-weight: 600;
}

.policy-text a {
  color: var(--colore-primario-chiaro);
  text-decoration: underline;
  transition: var(--transition);
}

.policy-text a:hover {
  color: var(--colore-primario-scuro);
  text-decoration: none;
}

.policy-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: 0 2px 10px var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: 0 2px 10px var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.cookie-table thead {
  background: linear-gradient(135deg, var(--colore-primario-scuro) 0%, var(--colore-primario-chiaro) 100%);
  color: var(--white);
}

.cookie-table th {
  padding: 1rem;
  text-align: left;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.cookie-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-light);
  font-size: 0.95rem;
}

.cookie-table tbody tr:last-child td {
  border-bottom: none;
}

.cookie-table tbody tr:hover {
  background-color: rgba(193, 223, 214, 0.3);
}

.policy-back-link {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(28, 135, 145, 0.2);
}

.policy-back-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--colore-accent-scuro) 0%, var(--colore-accent-chiaro) 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--shadow);
}

.policy-back-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
  text-decoration: none;
  color: var(--white);
}

@media (max-width: 968px) {
  .policy-title {
    font-size: 2.5rem;
  }

  .policy-text h2 {
    font-size: 1.5rem;
  }

  .policy-text h3 {
    font-size: 1.2rem;
  }

  .cookie-table {
    font-size: 0.85rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 640px) {
  .policy-section {
    padding: 6rem 0 3rem;
  }

  .policy-title {
    font-size: 2rem;
  }

  .policy-text h2 {
    font-size: 1.3rem;
  }

  .policy-text h3 {
    font-size: 1.1rem;
  }

  .cookie-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cookie-table thead,
  .cookie-table tbody,
  .cookie-table tr,
  .cookie-table th,
  .cookie-table td {
    display: block;
  }

  .cookie-table thead {
    display: none;
  }

  .cookie-table tr {
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    background-color: rgba(193, 223, 214, 0.2);
  }

  .cookie-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    text-align: left;
  }

  .cookie-table td {
    position: relative;
    padding-left: 40% !important;
  }

  .cookie-table td:before {
    content: attr(data-label) ": ";
    position: absolute;
    left: 0.5rem;
    width: 35%;
    font-weight: 600;
    color: var(--colore-primario-scuro);
  }

  .policy-back-button {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }
}

