/* Internet Casa - pagina offerte base */

.home-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 76px 0 82px;
  background:
    radial-gradient(circle at 78% 15%, rgba(0,166,81,.20), transparent 24%),
    radial-gradient(circle at 16% 82%, rgba(0,109,255,.24), transparent 32%),
    linear-gradient(135deg, #061b33 0%, #082c5f 55%, #04142a 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% 0 -12%;
  height: 145px;
  background:
    radial-gradient(ellipse at 46% 100%, rgba(0,109,255,.30), transparent 58%),
    repeating-radial-gradient(ellipse at 48% 100%, rgba(0,180,255,.16) 0 2px, transparent 2px 16px);
  opacity: .68;
  transform: rotate(-2deg);
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1fr) 390px;
  gap: 44px;
  align-items: center;
}

.home-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.3rem,5vw,4.45rem);
  line-height: 1.02;
  letter-spacing: -.06em;
}

.home-lead,
.home-sublead {
  max-width: 780px;
  color: rgba(255,255,255,.88);
  font-size: 1.08rem;
  line-height: 1.7;
}

.home-sublead {
  margin-top: 12px;
  color: rgba(255,255,255,.80);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.home-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.42);
  background: rgba(6,27,51,.34);
}

.home-hero-panel {
  border-radius: 34px;
  padding: 24px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 90px rgba(0,0,0,.20);
}

.hero-line {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.hero-line:last-child {
  border-bottom: 0;
}

.hero-line span {
  display: block;
  color: rgba(255,255,255,.66);
  font-size: .92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-line strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 1.28rem;
}

.offers-section,
.detail-section,
.why-section {
  padding: 76px 0;
  background: #fff;
}

.section-title.centered {
  max-width: 920px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-title.centered h2 {
  margin: 0 0 12px;
  color: #061b33;
  font-size: clamp(2rem,3.4vw,3.18rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.section-title.centered p {
  color: #5b6b7f;
  line-height: 1.72;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}

.offer-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  border: 1px solid rgba(9,25,44,.08);
  box-shadow: 0 22px 60px rgba(6,27,51,.10);
}

.offer-card.highlighted {
  border-color: rgba(0,166,81,.26);
  box-shadow: 0 28px 76px rgba(0,166,81,.14);
}

.offer-badge {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  padding: 9px 14px;
  color: #061b33;
  background: #ffea00;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.offer-visual {
  height: 280px;
  overflow: hidden;
  background: #061b33;
}

.offer-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.offer-body {
  padding: 30px;
}

.offer-kicker {
  color: #00A651;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.offer-body h3 {
  margin: 8px 0 16px;
  color: #061b33;
  font-size: clamp(1.9rem,3vw,2.7rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.price-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 8px 0 4px;
  color: #061b33;
}

.price-row span {
  font-size: 1.7rem;
  font-weight: 950;
  line-height: 1;
  margin-top: 9px;
}

.price-row strong {
  font-size: clamp(3rem,6vw,4.8rem);
  letter-spacing: -.07em;
  line-height: .9;
}

.price-row small {
  align-self: flex-end;
  margin-bottom: 8px;
  color: #5b6b7f;
  font-weight: 900;
}

.price-note {
  color: #5b6b7f;
  margin: 0 0 18px;
}

.offer-list,
.detail-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offer-list li,
.detail-card li {
  position: relative;
  padding: 10px 0 10px 30px;
  color: #4e5f73;
  line-height: 1.5;
  border-bottom: 1px solid rgba(9,25,44,.07);
}

.offer-list li:last-child,
.detail-card li:last-child {
  border-bottom: 0;
}

.offer-list li::before,
.detail-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: #00A651;
  font-weight: 950;
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.offer-actions .btn-outline {
  background: #fff;
}

.detail-section {
  background: linear-gradient(180deg, #f4f8fc, #fff);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.detail-card,
.why-home-grid article {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(9,25,44,.08);
  box-shadow: 0 18px 48px rgba(6,27,51,.08);
}

.detail-card h3,
.why-home-grid h3 {
  margin: 12px 0 10px;
  color: #061b33;
  font-size: 1.34rem;
}

.detail-card p,
.why-home-grid p {
  color: #5b6b7f;
  line-height: 1.68;
}

.why-home-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}

.home-cta-section {
  padding: 70px 0 86px;
  background: linear-gradient(135deg, #061b33, #082c5f);
}

.home-cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 36px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(0,166,81,.20), transparent 24%),
    rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
}

.home-cta-box h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.8rem,3.3vw,2.7rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.home-cta-box p {
  color: rgba(255,255,255,.82);
  line-height: 1.65;
}

.home-cta-box .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.42);
  background: rgba(6,27,51,.24);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.home-icon {
  --icon-url: none;
  display: inline-flex;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255,255,255,.95), rgba(255,255,255,0) 36%),
    linear-gradient(135deg, rgba(0,166,81,.18), rgba(0,109,255,.16));
  border: 1px solid rgba(0,59,134,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 14px 32px rgba(6,27,51,.10);
  position: relative;
}

.home-icon::before {
  content: "";
  position: absolute;
  inset: 13px;
  background: #006dff;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}

.icon-wifi6::before,
.icon-wifi7::before,
.icon-modem::before {
  background: #006dff;
}

.icon-clear::before,
.icon-free::before,
.icon-support::before {
  background: #00A651;
}

.icon-wifi6,
.icon-wifi7 {
  --icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M12 27c12-10 28-10 40 0M20 37c7-6 17-6 24 0M28 47c2-2 6-2 8 0' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3Ccircle cx='32' cy='54' r='4'/%3E%3C/svg%3E");
}

.icon-clear {
  --icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='12' y='10' width='40' height='48' rx='5' fill='none' stroke='black' stroke-width='5'/%3E%3Cpath d='M22 24h20M22 34h20M22 44h12' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.icon-free {
  --icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M18 33c0-8 6-14 14-14h5' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M37 11l9 8-9 8' fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M46 31c0 8-6 14-14 14h-5' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M27 53l-9-8 9-8' fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.icon-modem {
  --icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='10' y='34' width='44' height='16' rx='4' fill='none' stroke='black' stroke-width='5'/%3E%3Cpath d='M18 34V20M46 34V20M22 42h.1M32 42h.1M42 42h.1M22 22c6-5 14-5 20 0M27 28c3-2 7-2 10 0' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.icon-support {
  --icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M14 36v-5a18 18 0 0 1 36 0v5' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3Crect x='9' y='34' width='11' height='14' rx='4' fill='none' stroke='black' stroke-width='5'/%3E%3Crect x='44' y='34' width='11' height='14' rx='4' fill='none' stroke='black' stroke-width='5'/%3E%3Cpath d='M45 50c-4 5-11 6-18 4' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (max-width: 1100px) {
  .home-hero-grid,
  .home-cta-box {
    grid-template-columns: 1fr;
  }

  .offers-grid,
  .detail-grid,
  .why-home-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .home-hero {
    padding: 48px 0 64px;
  }

  .offers-section,
  .detail-section,
  .why-section {
    padding: 54px 0;
  }

  .offers-grid,
  .detail-grid,
  .why-home-grid {
    grid-template-columns: 1fr;
  }

  .offer-visual {
    height: 220px;
  }

  .offer-body,
  .detail-card,
  .home-cta-box {
    padding: 22px;
  }
}

/* Fix mirato V5: stessa altezza per entrambe le foto offerta. */
#offerta-wifi6 .offer-visual,
#offerta-wifi7 .offer-visual {
  height: 330px;
}

#offerta-wifi6 .offer-visual img {
  object-position: center 78%;
  transform: scale(1);
}

#offerta-wifi7 .offer-visual img {
  object-position: center center;
  transform: scale(1);
}
