/* ========================================
   LIDO MORETTI - STILE ESTIVO E FRESCO
   ======================================== */

/* --- VARIABLES --- */
:root {
  --sand: #f5e6c8;
  --sand-light: #faf3e6;
  --ocean: #0077b6;
  --ocean-deep: #023e8a;
  --ocean-light: #90e0ef;
  --ocean-pale: #caf0f8;
  --white: #ffffff;
  --cream: #fefcf3;
  --text: #1a1a2e;
  --text-light: #555;
  --coral: #ff6b6b;
  --gold: #f4a261;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-md: rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

/* --- RESET --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ocean-deep);
  margin-bottom: 32px;
}

.center {
  text-align: center;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ocean), var(--ocean-deep));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 119, 182, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 119, 182, 0.45);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ocean-deep);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px var(--shadow);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--ocean-deep);
}

.logo-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--ocean-light), var(--ocean));
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

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

.navbar.scrolled .nav-link {
  color: var(--text);
}

.nav-link:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--coral);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--text);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 8s ease-out;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.7) 0%, rgba(0, 180, 216, 0.4) 50%, rgba(2, 62, 138, 0.6) 100%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 119, 182, 0.2) 0%, transparent 50%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-info {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.hero-info-item i {
  color: var(--gold);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- ABOUT --- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-images {
  position: relative;
  height: 500px;
}

.about-img {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-md);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-1 {
  width: 300px;
  height: 360px;
  top: 0;
  left: 0;
}

.about-img-2 {
  width: 260px;
  height: 300px;
  bottom: 0;
  right: 0;
}

.about-text {
  padding-left: 20px;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 500;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ocean);
}

.stat-number i {
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- SERVICES --- */
.services {
  background: linear-gradient(180deg, var(--ocean-pale) 0%, var(--white) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ocean), var(--ocean-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 16px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-pale), var(--ocean-light));
  color: var(--ocean-deep);
  font-size: 1.3rem;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--ocean), var(--ocean-deep));
  color: var(--white);
  transform: scale(1.1);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--ocean-deep);
  padding: 0 16px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  padding: 0 20px 24px;
}

/* --- GALLERY --- */
.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

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

.gallery-wide img {
  height: 280px;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* --- CTA BANNER --- */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.85) 0%, rgba(2, 62, 138, 0.9) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

/* --- REVIEWS --- */
.reviews {
  background: linear-gradient(180deg, var(--sand-light) 0%, var(--cream) 100%);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.review-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  transition: all var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-md);
}

.review-stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  gap: 3px;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.review-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-source {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- CONTACT --- */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ocean-pale);
  color: var(--ocean);
  font-size: 1.1rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ocean-deep);
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-item a {
  color: var(--ocean);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--coral);
}

.map-wrapper {
  width: 100%;
  height: 450px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-md);
}

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

/* --- FOOTER --- */
.footer {
  background: var(--ocean-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  padding-right: 40px;
}

.footer-brand .logo-wave {
  display: inline-flex;
  margin-bottom: 12px;
}

.footer-brand .logo-text {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--ocean-light);
}

.footer-social h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--ocean);
  transform: translateY(-3px);
}

/* --- FOOTER BANNER --- */
.footer-banner {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-link {
  display: block;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px 32px;
  transition: all var(--transition);
  text-decoration: none;
}

.banner-link:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.banner-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  border-radius: 14px;
  color: var(--white);
  font-size: 1.4rem;
}

.banner-text {
  flex: 1;
}

.banner-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.banner-text h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.banner-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0;
}

.banner-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all var(--transition);
}

.banner-link:hover .banner-cta {
  background: var(--coral);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* --- SCROLL ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    transition: right var(--transition);
  }

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

  .nav-menu .nav-link {
    color: var(--text);
    font-size: 1.1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-images {
    height: 350px;
  }

  .about-text {
    padding-left: 0;
  }

  .about-stats {
    gap: 24px;
  }

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

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

  .gallery-wide {
    grid-column: span 1;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .banner-cta {
    margin-top: 8px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .gallery-caption {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-info {
    flex-direction: column;
    gap: 12px;
  }

  .about-images {
    height: 280px;
  }

  .about-img-1 {
    width: 220px;
    height: 260px;
  }

  .about-img-2 {
    width: 180px;
    height: 220px;
  }

  .about-stats {
    flex-direction: column;
    gap: 16px;
  }
}
