* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
}

.summer-scene {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background: #8bd0eb;
  overflow-x: hidden;
}

.sun-effect {
  display: none;
}

.sun-effect--right {
  display: none;
}

.page-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  overflow-y: visible;
}

.top-section,
.form-section,
.info-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.top-section {
  flex: 1 1 40%; /* Top section takes a bit more space */
  justify-content: center;
  text-align: left;
  padding: 2rem;
}

.top-section-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.form-section {
  flex: none;
  background: linear-gradient(to bottom, #87ceeb 0%, #b0e0e6 100%);
  flex-direction: column;
  gap: 1.5rem;
  transition: min-height 0.5s ease, background 0.5s ease;
}

.info-section {
  flex: 1 1 25%;
  flex-direction: column;
  gap: 1rem;
  background: rgba(0, 90, 156, 0.1);
}

.text-content {
  flex: 0 1 800px; /* Non crescere, base di 450px */
  text-align: left;
  z-index: 1;
}

.image-content {
  flex: 0 1 400px; /* Aumentato per dare più spazio */
  text-align: right; /* Allinea l'immagine a destra del suo contenitore */
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.image-content img {
  max-width: 380px;
  height: auto;
  transform: scale(1.2);
  transform-origin: center right;
  filter: drop-shadow(10px 10px 30px rgba(0, 0, 0, 0.2));
  transition: opacity 1.5s ease-in-out;
}

.text-content h1 {
  font-size: 5rem;
  margin-bottom: 10px;
  font-weight: 800;
  color: #fdd835; /* Giallo sole */
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  letter-spacing: 2px;
  line-height: 1;
}

.logo-container {
  margin-bottom: 2rem;
  text-align: left;
}

.company-logo {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.15));
}

.text-content p {
  font-size: 2.3rem;
  margin-bottom: 30px;
  line-height: 1.7;
  color: #014a81;
  max-width: 700px;
  min-height: 300px;
  font-weight: 500;
}

/* Form styles moved to form/form-styles.css */

/* Info Section Styles */
.info-section h3 {
  font-size: 2rem;
  color: #005a9c;
}

.info-section p {
  font-size: 1.1rem;
  color: #014a81;
  max-width: 600px;
  text-align: center;
}

/* Verification Section */
.verification-section {
  padding: 4rem 2rem;
  background: #b096a688;
  text-align: center;
}

.verification-title {
  font-size: 2.2rem;
  color: #005a9c;
  margin-bottom: 3rem;
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.verification-item {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.verification-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.verification-item h3 {
  font-size: 1.5rem;
  color: #005a9c;
  margin-bottom: 1rem;
}

.verification-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.verification-item p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
}

/* Stats Section */
.stats-section {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem;
  background-color: #f0f0f0;
  text-align: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
}

.stat-icon {
  max-width: 100px;
  height: auto;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #333;
  margin-bottom: 0.5rem;
  text-align: center;
}

.stat-item p {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
  text-align: center;
}

.premium-btn {
  background: linear-gradient(135deg, #fdd835 0%, #fbc02d 100%);
  color: #005a9c;
  border: none;
  padding: 20px 50px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.5s ease;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 10px 30px rgba(253, 216, 53, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}

.premium-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.premium-btn:hover::after {
  width: 300px;
  height: 300px;
}

.premium-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(253, 216, 53, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #fde26a 0%, #fdd835 100%);
}

/* Stili per modalità movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  .sun-effect,
  .glass-surface {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.reduced-motion .sun-effect,
.reduced-motion .glass-surface {
  animation: none !important;
}

/* Stili per modalità risparmio energetico */
.power-save-mode .sun-effect,
.power-save-mode .glass-surface {
  animation-play-state: paused !important;
}

.power-save-mode .atmospheric-layer,
.power-save-mode .glass-surface {
  opacity: 0.5;
}

/* Miglioramenti accessibilità */
.premium-btn:focus-visible {
  outline: 3px solid rgba(253, 216, 53, 0.7);
  outline-offset: 2px;
}

@media (min-width: 769px) {
  .summer-scene {
    overflow: visible;
  }
}

/* Tablet - 769px to 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
  #progressive-form {
    width: 500px;
    padding: 28px;
  }

  .form-nav-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .form-nav-prev {
    left: -65px;
  }

  .form-nav-next {
    right: -65px;
  }
}

/* Mobile Large - 481px to 768px */
@media (max-width: 768px) {
  .form-section {
    align-items: center;
    min-height: auto;
    flex: none;
    padding: 0.5rem 1rem 0.5rem 1rem;
  }

  .form-section.full-screen-mobile {
    align-items: flex-start;
    padding-top: 2rem;
    min-height: 100vh;
  }
  .page-content {
    height: auto;
  }

  .top-section {
    padding: 0.25rem 0.5rem;
  }

  .top-section-container {
    flex-direction: column;
    text-align: center;
    gap: 0.1rem;
    max-width: 100%;
  }

  .text-content {
    padding-left: 0;
    text-align: center;
    order: 2;
    max-width: 100%;
    flex: none;
  }

  .image-content {
    order: 1;
    flex: none;
    margin-bottom: 0.1rem;
    text-align: center;
    justify-content: center;
  }

  .image-content img {
    max-width: 380px;
    max-height: 380px;
    margin: 0;
    padding: 0%;
    transform: scale(1);
    transform-origin: center;
  }

  .text-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.1rem;
    letter-spacing: 2px;
  }

  .text-content h1 {
    font-size: 120px;
    margin-bottom: 0.25rem;
    line-height: 0.9;
  }

  .text-content p {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    padding: 0 0.5rem;
    max-width: 100%;
    min-height: auto;
    font-weight: 500;
  }

  .logo-container {
    text-align: center;
    margin-bottom: 0.25rem;
  }

  .company-logo {
    max-width: 220px;
  }

  .premium-btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    margin-top: 0.1rem;
    min-height: 48px;
    border-radius: 25px;
  }

  .verification-section,
  .stats-section,
  .form-section,
  .info-section {
    padding: 1.5rem 1rem;
    flex-basis: auto;
  }

  .verification-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-section {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .stat-icon {
    display: block;
  }

  /* Form ottimizzato per tablet/mobile large */
  #progressive-form {
    width: calc(100vw - 180px);
    max-width: 400px;
    padding: 24px;
  }

  .form-nav-arrow {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .form-nav-prev {
    left: 15px;
  }

  .form-nav-next {
    right: 15px;
  }

  .form-container {
    max-width: 100%;
  }

  /* Ottimizzazioni Mobile */
  .sun-effect {
    display: block;
    width: 300px; /* Più piccolo su mobile */
    height: 300px;
    top: -100px;
    left: -100px;
    opacity: 0.7; /* Leggermente più trasparente */
    animation-duration: 15s; /* Più lento per performance */
  }

  .sun-effect--right {
    display: none; /* Nasconde il sole di destra su mobile */
  }

  /* Rimuovi i raggi animati su mobile per performance */
  .sun-effect::before,
  .sun-effect::after {
    animation-duration: 20s; /* Molto più lento */
    opacity: 0.3; /* Più sottili */
  }

  .summer-scene {
    height: auto;
  }
}

/* Osmosis Section */
.osmosis-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #a0aab2 0%, #e6f3ff 100%);
  text-align: center;
}

.osmosis-section h2 {
  font-size: 2rem;
  color: #005a9c;
  margin-bottom: 3rem;
  text-align: center;
}

.osmosis-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.osmosis-image {
  flex: 1 1 45%;
  max-width: 520px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 90, 156, 0.2);
  margin: 0;
  padding: 0;
  display: block;
}

.osmosis-text {
  flex: 1 1 50%;
  text-align: left;
  max-width: 600px;
}

.osmosis-text p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #014a81;
  margin-bottom: 2rem;
}

.osmosis-process h3 {
  font-size: 1.5rem;
  color: #005a9c;
  margin-bottom: 1rem;
}

.osmosis-process ul {
  list-style: none;
  padding: 0;
}

.osmosis-process li {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #014a81;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.osmosis-process li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2cab4a;
  font-weight: bold;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .osmosis-content {
    flex-direction: column;
    gap: 1rem;
  }

  .osmosis-text {
    text-align: center;
  }

  .osmosis-section {
    padding: 2rem 1rem;
  }

  .osmosis-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .osmosis-image {
    max-width: 400px;
    max-height: 300px;
  }
}

/* Lifestyle Section */
#lifestyle-section {
  padding: 2rem 1rem;
  background: #c3d0e1;
  text-align: center;
}

#lifestyle-section h2 {
  font-size: 2.2rem;
  color: #005a9c;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 33.33%;
  padding: 0 1rem;
}

.carousel-slide img {
  width: 100%;
  border-radius: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #005a9c;
  border: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8),
    -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.3);
  color: #0074cc;
  text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.9),
    -2px -2px 6px rgba(255, 255, 255, 0.9);
}

.carousel-btn-prev {
  left: -80px;
}

.carousel-btn-next {
  right: -80px;
}

/* Indicatori Carousel */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  padding: 0 20px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 90, 156, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.indicator:hover {
  background: rgba(0, 90, 156, 0.6);
  transform: scale(1.2);
}

.indicator.active {
  background: #005a9c;
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.2);
}

.indicator:focus-visible {
  outline: 2px solid #005a9c;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .carousel-slide {
    min-width: 100%;
    padding: 0;
  }

  .carousel-btn {
    background: transparent;
    border: none;
    color: #005a9c;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8),
      -2px -2px 4px rgba(255, 255, 255, 0.8);
  }

  .carousel-btn:hover {
    transform: translateY(-50%) scale(1.2);
    color: #0074cc;
  }

  .carousel-btn-prev {
    left: 10px;
  }

  .carousel-btn-next {
    right: 10px;
  }
}

/* Mobile Medium - 361px to 480px */
@media (max-width: 480px) {
  .top-section {
    padding: 1rem 0.75rem;
    gap: 0.25rem;
  }

  .text-content .subtitle {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .text-content h1 {
    font-size: 4rem;
    margin-bottom: 0.75rem;
  }

  .text-content p {
    font-size: 2.1rem;
    line-height: 1.4;
    padding: 0 0.25rem;
    font-weight: 500;
  }

  .premium-btn {
    padding: 14px 28px;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .image-content img {
    max-width: 520px;
    max-height: 520px;
  }

  /* Form ottimizzato per mobile medium */
  #progressive-form {
    width: calc(100vw - 140px);
    max-width: 300px;
    padding: 20px;
  }

  .form-nav-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .form-nav-prev {
    left: 12px;
  }

  .form-nav-next {
    right: 12px;
  }
}

/* Mobile Small - 320px to 360px */
@media (max-width: 360px) {
  .top-section {
    padding: 0.75rem 0.5rem;
  }

  .text-content h1 {
    font-size: 3.5rem;
  }

  .text-content p {
    font-size: 0.85rem;
  }

  .premium-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .image-content img {
    max-width: 160px;
    max-height: 160px;
  }

  /* Form ottimizzato per mobile small */
  #progressive-form {
    width: calc(100vw - 110px);
    max-width: 250px;
    padding: 16px;
  }

  .form-nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .form-nav-prev {
    left: 10px;
  }

  .form-nav-next {
    right: 10px;
  }

  .form-question {
    font-size: 1.2rem;
  }

  .radio-group label {
    font-size: 1rem;
    padding: 0.8rem;
  }
}

/* Miglioramenti per la leggibilità del testo */
@media (max-width: 768px) {
  .text-content p strong {
    display: block;
    margin: 0.5rem 0;
    font-size: 1.1em;
  }

  .text-content p u {
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
  }

  .text-content p span[style*="color: #dc2626"] {
    display: block;
    margin-top: 1rem;
    font-size: 0.95em;
    padding: 0.5rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
    border-left: 4px solid #dc2626;
  }
}
