/* ===== Landing TIM WiFi CASA – allineamento desktop e mobile ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #00329a;
  color: #fff;
}

/* Container unico per allineamento */
.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ----- Navbar ----- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #00329a;
  position: relative;
  z-index: 10;
}
.navbar .landing-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.navbar-logo {
  height: 20px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  .navbar-logo { height: 42px; }
}

/* ----- Hero Section 1 (TIM WiFi CASA) ----- */
.section-1 {
  background-color: #00329a;
  padding: 1.5rem 0 2rem;
}
.section-1 .landing-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}
.section-1-text {
  flex: 1;
  min-width: 0;
}
.section-1-text h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.section-1-text h1 img {
  height: 40px;
  vertical-align: middle;
}
.section-1-text p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.95);
}
.section-1-text .price {
  margin: 0.5rem 0 1rem;
  font-size: 1.5rem;
}
.section-1-text .price strong { font-size: 1.75rem; }
.section-1-text .original-price {
  font-size: 0.95rem;
  text-decoration: line-through;
  opacity: 0.9;
}
.services-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  line-height: 1.6;
  font-size: 0.95rem;
}
.services-list li { margin-bottom: 0.35rem; }

/* CTA Hero */
.cta-button {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
}
.cta-link {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.cta-link:first-child {
  background-color: #e30613;
  color: #fff;
  border-color: #e30613;
}
.cta-link:first-child:hover {
  background-color: #c20510;
  border-color: #c20510;
  color: #fff;
}
.cta-link-secondary {
  background: #fff !important;
  color: #0164f2 !important;
  border-color: #fff !important;
}
.cta-link-secondary:hover {
  background: #0164f2 !important;
  color: #fff !important;
  border-color: #0164f2 !important;
}

.section-1-image {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-1-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Desktop: due colonne */
@media (min-width: 768px) {
  .section-1 { padding: 2rem 0 3rem; }
  .section-1 .landing-container {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  .section-1-text h1 { font-size: 2rem; }
  .section-1-text .price { font-size: 1.75rem; }
  .section-1-text .price strong { font-size: 2rem; }
  .cta-button {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
    gap: 1rem;
  }
  .cta-link { min-width: 200px; }
}

/* ----- Sezione TIM + Telepass (mockup: sinistra testo/box, destra immagine) ----- */
.telepass-section {
  background: #fff;
  padding: 2rem 1rem;
}
.telepass-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}
.telepass-col-left {
  min-width: 0;
  text-align: center;
}
.telepass-col-right {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.telepass-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.telepass-logo-tim { height: 36px; }
.telepass-plus { font-size: 1.2rem; font-weight: 700; color: #00329a; }
.telepass-name { font-size: 1.5rem; font-weight: 700; color: #00329a; }
.telepass-title {
  font-size: 1.15rem;
  color: #00329a;
  margin: 0 0 1rem;
  line-height: 1.4;
  text-align: center;
}
/* Box offerta con barra rossa in basso come da mockup */
.telepass-offer-box {
  background: #00329a;
  color: #fff;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin-bottom: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.telepass-offer-box-main {
  padding: 1.25rem 1rem;
  font-size: 1rem;
  line-height: 1.4;
}
.telepass-offer-box-main strong { font-size: 1.25rem; }
.telepass-offer-box-ribbon {
  background: #e30613;
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.telepass-hero-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 380px;
  border-radius: 8px;
  object-fit: contain;
}
.cta-link-telepass {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 10px 20px;
  background: #0164f2;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #0164f2;
}
.cta-link-telepass:hover {
  background: #00329a !important;
  border-color: #00329a;
  color: #fff !important;
}
@media (min-width: 768px) {
  .telepass-section { padding: 2.5rem 1rem; }
  .telepass-inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  .telepass-col-left { flex: 1; text-align: left; }
  .telepass-col-right { flex: 1; }
  .telepass-brand { justify-content: flex-start; }
  .telepass-title { text-align: left; font-size: 1.25rem; }
  .telepass-offer-box { text-align: left; }
  .telepass-offer-box-main { padding: 1.25rem 1.25rem; }
  .telepass-offer-box-ribbon { text-align: center; }
  .telepass-hero-img { max-height: 420px; }
}

/* ----- Blocco immagine centrale ----- */
.x-image {
  text-align: center;
  padding: 1.5rem 1rem;
  background-color: #00329a;
}
.x-image-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.x-image img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* ----- Sezione TV / Offer section ----- */
.offer-section {
  background-color: #f0f0f0;
  color: #333;
  padding: 2rem 0;
}
.x-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.x-row-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}
.x-col {
  min-width: 0;
}
.x-text {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.x-text ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}
.x-text li { margin-bottom: 0.25rem; }
.highlight-red { color: #e30613; }
.highlight-blue { color: #0164f2; }
.x-col .x-image {
  text-align: center;
  padding: 0;
  background: transparent;
}
.x-col .x-image img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

@media (min-width: 768px) {
  .offer-section { padding: 2.5rem 0; }
  .x-row-inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  .x-col { flex: 1; }
  .x-col:last-child { flex: 0 0 360px; text-align: center; }
}

/* ----- Footer ----- */
.footer {
  background-color: #00329a;
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
  padding: 2rem 1rem;
}
.footer p { margin: 0.5rem 0; }
.footer a {
  color: #ffcc00;
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; color: #fff; }

@media (max-width: 600px) {
  .footer { font-size: 0.7rem; padding: 1.5rem 0.75rem; }
}
