/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-azure: #37ABD4;
  --brand-azure-600: #0B7FA8;
  --brand-beige: #CAC1AB;
  --text: #374151;
  --text-muted: #75797C;
  --bg: #F6F7F6;
  --surface: #FEFEFE;
  --border: #E6E7E6;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.logo:hover img {
  transform: scale(1.05);
}

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

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--brand-azure-600);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-azure-600);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  background-color: var(--brand-azure-600);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--brand-azure);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-azure-600);
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  border: 2px solid var(--brand-azure-600);
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--brand-azure);
  color: white;
  border-color: var(--brand-azure);
  transform: scale(1.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-text {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.btn-text:hover {
  color: var(--brand-azure-600);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s;
}

.mobile-menu-btn:hover {
  color: var(--brand-azure-600);
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-menu.active {
  display: block;
  animation: fadeIn 0.3s;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s;
}

.mobile-nav a:hover {
  color: var(--brand-azure-600);
  background-color: rgba(55, 171, 212, 0.05);
}

/* Hero Section */
.hero {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hero Slider */
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide picture,
.slide img {
  width: 100%;
  height: 100%;
}

.slide img {
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25));
  z-index: 2;
}

/* Slider Controls */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 0.7;
}

.slider-control:hover {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
  left: 2rem;
}

.slider-control.next {
  right: 2rem;
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  gap: 0.75rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.indicator.active {
  background: white;
  width: 14px;
  height: 14px;
}

.hero-content {
  position: relative;
  z-index: 20;
  text-align: center;
  color: white;
  padding: 0 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero p {
  font-size: 1.875rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  font-weight: 300;
}

.hero .search-box {
  max-width: 768px;
  margin: 0 auto;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
}

.hero .search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero input {
  flex: 1;
  font-size: 1.125rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid var(--border);
  transition: all 0.3s;
  color: var(--text);
}

.hero input:focus {
  outline: none;
  border-color: var(--brand-azure-600);
  box-shadow: 0 0 0 3px rgba(11, 127, 168, 0.1);
}

.hero .btn-primary {
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
}

.popular-searches {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.popular-searches span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.popular-searches button {
  font-size: 0.875rem;
  color: var(--brand-azure-600);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 672px;
  margin: 0 auto;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.card:hover {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-azure-600);
  transform: translateY(-0.5rem);
}

.card-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}

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

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.card:hover h3 {
  color: var(--brand-azure-600);
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.card-arrow {
  margin-top: 1.5rem;
  color: var(--brand-azure-600);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover .card-arrow {
  opacity: 1;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
  max-width: 1152px;
  margin: 0 auto;
}

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

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

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--brand-azure-600), var(--brand-azure), var(--brand-azure-600));
  border-radius: 1rem;
  padding: 4rem;
  text-align: center;
  color: white;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  border: none;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/sfondo.jpg');
  opacity: 0.1;
  background-size: cover;
  background-position: center;
}

.cta-content {
  position: relative;
  z-index: 10;
}

.cta-section .cta-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-section .btn-white {
  background-color: white;
  color: var(--brand-azure-600);
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-white:hover {
  background-color: var(--brand-beige);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.cta-features {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
}

.cta-features div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Promo Section */
.promo-section {
  background-color: var(--brand-beige);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 1rem;
  margin: 3rem 0;
}

.promo-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.promo-section .highlight {
  background-color: var(--brand-azure-600);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 700;
}

.promo-section ul {
  list-style: none;
  max-width: 600px;
  margin: 2rem auto;
  text-align: left;
}

.promo-section li {
  padding: 0.75rem 0;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.promo-section li::before {
  content: '✓';
  color: var(--brand-azure-600);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Footer */
footer {
  background-color: var(--brand-beige);
  color: #1f2937;
  margin-top: 6rem;
}

.footer-content {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
}

.footer-logo img {
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  mix-blend-mode: multiply;
}

.footer-logo p {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.7;
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.footer-column a:hover {
  color: var(--brand-azure-600);
  padding-left: 0.25rem;
}

.footer-column a::before {
  content: '→';
  margin-right: 0.5rem;
  transition: margin-right 0.3s;
}

.footer-column a:hover::before {
  margin-right: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid #9ca3af;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #4b5563;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (min-width: 768px) {
  .hero .search-form {
    flex-direction: row;
  }

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

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

  .footer-logo {
    grid-column: span 1;
  }

  .hero h1 {
    font-size: 5rem;
  }

  .section-header h2 {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  nav {
    display: none;
  }

  .auth-buttons {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .cta-section {
    padding: 2rem 1rem;
  }

  .cta-section h2 {
    font-size: 1.875rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  /* Slider controls on mobile */
  .slider-control {
    width: 40px;
    height: 40px;
  }

  .slider-control.prev {
    left: 1rem;
  }

  .slider-control.next {
    right: 1rem;
  }

  .slider-indicators {
    bottom: 1rem;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .indicator.active {
    width: 12px;
    height: 12px;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.p-10 {
  padding: 2.5rem;
}
