/*
Theme Name: AVM Partner v1.0.3
Theme URI: https://www.avmpartnertim.it/
Author: AVM Partner
Author URI: https://www.avmpartnertim.it/
Description: Tema custom leggero per landing page AVM Partner TIM.
Version: 1.0.3
Text Domain: avmpartner
*/

:root {
  --avm-blue: #004990;
  --avm-blue-dark: #071f47;
  --avm-red: #e30613;
  --avm-cyan: #00a3e0;
  --avm-white: #ffffff;
  --avm-soft: #f4f8fc;
  --avm-text: #152033;
  --avm-muted: #667085;
  --avm-border: #d9e4f2;
  --avm-success: #00a76f;
  --avm-shadow: 0 24px 70px rgba(0, 43, 92, 0.18);
  --avm-radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--avm-text);
  background: var(--avm-white);
  line-height: 1.5;
}

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

.avm-page { overflow: hidden; }

.avm-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.avm-topbar {
  background: var(--avm-blue-dark);
  color: var(--avm-white);
  font-size: 14px;
  padding: 10px 0;
}

.avm-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.avm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 228, 242, 0.85);
}

.avm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.avm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--avm-blue-dark);
  font-size: 22px;
}

.avm-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--avm-blue), var(--avm-cyan));
  color: var(--avm-white);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 73, 144, 0.25);
}

.avm-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: var(--avm-muted);
}

.avm-nav a:hover { color: var(--avm-blue); }

.avm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-size: 16px;
  white-space: nowrap;
}

.avm-btn:hover { transform: translateY(-2px); }

.avm-btn-primary {
  background: linear-gradient(135deg, var(--avm-red), #ff4b55);
  color: var(--avm-white);
  box-shadow: 0 18px 38px rgba(227, 6, 19, 0.28);
}

.avm-btn-secondary {
  background: var(--avm-white);
  color: var(--avm-blue);
  box-shadow: 0 14px 34px rgba(0, 43, 92, 0.14);
}

.avm-btn-outline {
  background: transparent;
  color: var(--avm-blue);
  border: 1px solid var(--avm-border);
}

.avm-hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 163, 224, 0.22), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(227, 6, 19, 0.18), transparent 28%),
    linear-gradient(135deg, #eef7ff 0%, #ffffff 46%, #edf5ff 100%);
  padding: 76px 0 70px;
}

.avm-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 52px;
}

.avm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 73, 144, 0.08);
  color: var(--avm-blue);
  border: 1px solid rgba(0, 73, 144, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
}

.avm-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: .96;
  letter-spacing: -0.06em;
  color: var(--avm-blue-dark);
  margin: 0 0 22px;
}

.avm-hero h1 span { color: var(--avm-red); }

.avm-hero-subtitle {
  font-size: clamp(18px, 2.4vw, 23px);
  color: #42526b;
  max-width: 660px;
  margin: 0 0 28px;
}

.avm-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.avm-hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
}

.avm-point {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 228, 242, 0.9);
  border-radius: 18px;
  padding: 14px;
  font-size: 14px;
  color: #344054;
  box-shadow: 0 10px 28px rgba(0, 43, 92, 0.06);
}

.avm-point strong {
  display: block;
  color: var(--avm-blue-dark);
  margin-bottom: 3px;
  font-size: 15px;
}

.avm-lead-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 228, 242, 0.95);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--avm-shadow);
  position: relative;
}

.avm-lead-card::before {
  content: "Consulenza gratuita";
  position: absolute;
  top: -16px;
  right: 28px;
  background: var(--avm-success);
  color: white;
  font-weight: 900;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 12px 24px rgba(0, 167, 111, 0.25);
}

.avm-lead-card h2 {
  color: var(--avm-blue-dark);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}

.avm-lead-card p {
  color: var(--avm-muted);
  margin: 0 0 20px;
}

.avm-form { display: grid; gap: 13px; }

.avm-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.avm-field { display: grid; gap: 7px; }

.avm-field label {
  font-size: 13px;
  font-weight: 800;
  color: #344054;
}

.avm-field input,
.avm-field select,
.avm-field textarea {
  width: 100%;
  border: 1px solid var(--avm-border);
  border-radius: 14px;
  min-height: 50px;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
  color: var(--avm-text);
  background: #fff;
}

.avm-field input:focus,
.avm-field select:focus,
.avm-field textarea:focus {
  border-color: var(--avm-cyan);
  box-shadow: 0 0 0 4px rgba(0, 163, 224, 0.12);
}

.avm-field textarea { min-height: 92px; resize: vertical; }

.avm-privacy {
  font-size: 12px;
  color: var(--avm-muted);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.avm-privacy input {
  width: 16px;
  height: 16px;
  min-height: auto;
  margin-top: 2px;
  flex: 0 0 auto;
}

.avm-form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--avm-success);
  font-weight: 800;
  margin-top: 2px;
}

.avm-strip {
  padding: 26px 0;
  background: var(--avm-blue-dark);
  color: white;
}

.avm-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.avm-strip-item {
  padding: 12px;
  border-right: 1px solid rgba(255,255,255,.15);
}

.avm-strip-item:last-child { border-right: 0; }
.avm-strip-item strong { display: block; font-size: 25px; margin-bottom: 3px; }
.avm-strip-item span { font-size: 14px; color: rgba(255,255,255,.75); }

.avm-section { padding: 86px 0; }
.avm-offers, .avm-faq { background: var(--avm-soft); }

.avm-section-head {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.avm-section-head h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--avm-blue-dark);
  margin: 0 0 16px;
}

.avm-section-head p {
  color: var(--avm-muted);
  font-size: 18px;
  margin: 0;
}

.avm-cards,
.avm-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.avm-offer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.avm-offer-grid .avm-offer {
  min-height: 100%;
}

.avm-card,
.avm-offer,
.avm-step,
.avm-faq details {
  border: 1px solid var(--avm-border);
  background: white;
  box-shadow: 0 16px 45px rgba(0, 43, 92, 0.07);
}

.avm-card {
  border-radius: var(--avm-radius);
  padding: 28px;
}

.avm-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 73, 144, 0.09);
  color: var(--avm-blue);
  font-size: 25px;
  margin-bottom: 18px;
}

.avm-card h3,
.avm-offer h3,
.avm-step h3 {
  color: var(--avm-blue-dark);
  letter-spacing: -0.03em;
  margin-top: 0;
}

.avm-card h3 { font-size: 23px; margin-bottom: 10px; }
.avm-card p, .avm-offer p, .avm-step p { color: var(--avm-muted); }

.avm-offer {
  position: relative;
  border-radius: 28px;
  padding: 28px;
  overflow: hidden;
}

.avm-offer.avm-featured {
  border: 2px solid var(--avm-red);
  transform: translateY(-8px);
}

.avm-badge {
  display: inline-flex;
  background: rgba(227, 6, 19, 0.1);
  color: var(--avm-red);
  border-radius: 999px;
  font-weight: 900;
  padding: 7px 12px;
  font-size: 12px;
  margin-bottom: 16px;
}

.avm-offer h3 { font-size: 26px; margin-bottom: 10px; }
.avm-desc { min-height: 72px; }

.avm-benefits { display: grid; gap: 10px; margin: 20px 0 24px; }
.avm-benefit { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; color: #344054; }
.avm-check { color: var(--avm-success); font-weight: 900; flex: 0 0 auto; }

.avm-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.avm-step {
  border-radius: 24px;
  padding: 24px;
}

.avm-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--avm-blue);
  color: white;
  font-weight: 900;
  margin-bottom: 16px;
}

.avm-step h3 { font-size: 20px; margin-bottom: 8px; }

.avm-cta-band {
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 163, 224, .35), transparent 30%),
    linear-gradient(135deg, var(--avm-blue-dark), var(--avm-blue));
  color: white;
  border-radius: 34px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  box-shadow: var(--avm-shadow);
}

.avm-cta-band h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0 0 12px;
}

.avm-cta-band p { color: rgba(255,255,255,.78); font-size: 18px; max-width: 760px; margin: 0; }

.avm-faq-grid { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; }
.avm-faq details { border-radius: 18px; padding: 18px 20px; }
.avm-faq summary { cursor: pointer; font-weight: 900; color: var(--avm-blue-dark); font-size: 17px; }
.avm-faq details p { color: var(--avm-muted); margin-top: 12px; }

.avm-footer { background: #071a35; color: white; padding: 44px 0; }
.avm-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 28px; }
.avm-footer p, .avm-footer a, .avm-footer li { color: rgba(255,255,255,.72); font-size: 14px; }
.avm-footer h4 { margin-bottom: 12px; font-size: 16px; }
.avm-footer ul { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.avm-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 20px; color: rgba(255,255,255,.52); font-size: 12px; }

.avm-floating-cta { display: none; position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 80; }
.avm-floating-cta .avm-btn { width: 100%; }

@media (max-width: 980px) {
  .avm-nav { display: none; }
  .avm-hero-grid,
  .avm-cards,
  .avm-offer-grid,
  .avm-process-grid,
  .avm-footer-grid { grid-template-columns: 1fr; }
  .avm-hero { padding-top: 46px; }
  .avm-lead-card { order: -1; }
  .avm-hero-points,
  .avm-strip-grid { grid-template-columns: 1fr 1fr; }
  .avm-offer.avm-featured { transform: none; }
  .avm-cta-band { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 640px) {
  .avm-topbar { display: none; }
  .avm-brand { font-size: 18px; }
  .avm-brand-mark { width: 40px; height: 40px; }
  .avm-header .avm-btn { min-height: 44px; padding: 11px 14px; font-size: 14px; }
  .avm-hero { padding-bottom: 44px; }
  .avm-hero-grid { gap: 30px; }
  .avm-hero-points,
  .avm-strip-grid,
  .avm-field-grid { grid-template-columns: 1fr; }
  .avm-section { padding: 58px 0; }
  .avm-lead-card { padding: 22px; border-radius: 24px; }
  .avm-floating-cta { display: block; }
  body { padding-bottom: 78px; }
}


/* Legal pages */
.avm-legal-page {
  background: var(--avm-soft);
  min-height: 100vh;
  padding: 48px 0 72px;
}
.avm-legal-box {
  background: #fff;
  border: 1px solid var(--avm-border);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 43, 92, 0.08);
  padding: clamp(24px, 4vw, 52px);
}
.avm-legal-box h1 {
  color: var(--avm-blue-dark);
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 0 0 14px;
}
.avm-legal-box h2 {
  color: var(--avm-blue-dark);
  font-size: 24px;
  margin: 34px 0 10px;
  letter-spacing: -0.03em;
}
.avm-legal-box h3 {
  color: var(--avm-blue-dark);
  font-size: 19px;
  margin: 22px 0 8px;
}
.avm-legal-box p,
.avm-legal-box li {
  color: #475467;
  font-size: 16px;
}
.avm-legal-box ul { padding-left: 22px; display: grid; gap: 8px; }
.avm-legal-meta {
  color: var(--avm-muted);
  margin-bottom: 28px;
}
.avm-legal-notice {
  background: rgba(227, 6, 19, 0.08);
  border: 1px solid rgba(227, 6, 19, 0.18);
  color: #7a1118;
  border-radius: 18px;
  padding: 16px;
  margin: 22px 0;
  font-weight: 700;
}
.avm-legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 14px;
}
.avm-legal-table th,
.avm-legal-table td {
  border: 1px solid var(--avm-border);
  text-align: left;
  padding: 12px;
  vertical-align: top;
  color: #475467;
}
.avm-legal-table th {
  background: #eef7ff;
  color: var(--avm-blue-dark);
}
.avm-legal-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--avm-blue);
  font-weight: 800;
}
.avm-widget-head {
  margin-bottom: 20px;
}

.avm-widget-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00a76f;
  color: #ffffff;
  font-weight: 900;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 14px;
  box-shadow: 0 12px 24px rgba(0, 167, 111, 0.22);
}

.avm-widget-box {
  background: #ffffff;
  border: 1px solid #d9e4f2;
  border-radius: 22px;
  padding: 18px;
  overflow: hidden;
}

.avm-widget-box input,
.avm-widget-box select,
.avm-widget-box textarea {
  width: 100% !important;
  min-height: 52px !important;
  border: 1px solid #d9e4f2 !important;
  border-radius: 14px !important;
  padding: 13px 14px !important;
  font-size: 15px !important;
  outline: none !important;
  box-shadow: none !important;
}

.avm-widget-box input:focus,
.avm-widget-box select:focus,
.avm-widget-box textarea:focus {
  border-color: #00a3e0 !important;
  box-shadow: 0 0 0 4px rgba(0, 163, 224, 0.12) !important;
}

.avm-widget-box button,
.avm-widget-box input[type="submit"] {
  width: 100% !important;
  min-height: 54px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #e30613, #ff4b55) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  box-shadow: 0 18px 38px rgba(227, 6, 19, 0.28) !important;
}

.avm-widget-box label {
  font-weight: 800 !important;
  color: #344054 !important;
  font-size: 13px !important;
}

.avm-widget-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #00a76f;
  font-weight: 800;
}

@media (max-width: 640px) {
  .avm-widget-box {
    padding: 14px;
    border-radius: 18px;
  }
}

/* Promo TIM - sezione locandine aggiornata */
.avm-promo-showcase {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 163, 224, 0.10), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(227, 6, 19, 0.08), transparent 26%),
    linear-gradient(135deg, #f4f8fc 0%, #ffffff 48%, #eef6ff 100%);
}

/* Titolo centrato come il resto della pagina */
.avm-promo-head,
.avm-promo-showcase .avm-section-head {
  max-width: 780px;
  margin: 0 auto 34px !important;
  text-align: center !important;
}

.avm-promo-showcase .avm-section-head h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--avm-blue-dark);
  margin: 0 0 16px;
  text-align: center;
}

.avm-promo-showcase .avm-section-head p {
  color: var(--avm-muted);
  font-size: 18px;
  margin: 0 auto;
  text-align: center;
  max-width: 720px;
}

.avm-section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 73, 144, 0.08);
  color: var(--avm-blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Contenitore carosello automatico */
.avm-promo-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* Sfumatura laterale sinistra/destra */
.avm-promo-carousel-wrap::before,
.avm-promo-carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.avm-promo-carousel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #f4f8fc 0%, rgba(244, 248, 252, 0) 100%);
}

.avm-promo-carousel-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #eef6ff 0%, rgba(238, 246, 255, 0) 100%);
}

/* Track carosello automatico: niente barra, movimento continuo */
.avm-promo-carousel {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 22px;
  width: max-content;
  overflow: visible !important;
  padding: 18px 4px 34px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: avmPromoScroll 42s linear infinite;
  scrollbar-width: none;
}

.avm-promo-carousel::-webkit-scrollbar {
  display: none;
}

/* Pausa al passaggio del mouse */
.avm-promo-carousel:hover {
  animation-play-state: paused;
}

/* Card promo TIM +25% */
.avm-promo-card {
  flex: 0 0 215px !important;
  width: 215px !important;
  max-width: 215px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(217, 228, 242, 0.95);
  box-shadow: 0 18px 48px rgba(0, 43, 92, 0.14);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.avm-promo-card img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.avm-promo-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(0, 163, 224, 0.45);
  box-shadow: 0 22px 52px rgba(0, 43, 92, 0.18);
}

/* CTA finale promo */
.avm-promo-cta {
  margin-top: 20px;
  padding: 28px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0, 43, 92, 0.96), rgba(0, 73, 144, 0.94));
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 24px 70px rgba(0, 43, 92, 0.18);
}

.avm-promo-cta h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}

.avm-promo-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
}

/* Animazione carosello automatico */
@keyframes avmPromoScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(calc(-50% - 11px), 0, 0);
  }
}

/* Responsive tablet */
@media (max-width: 980px) {
  .avm-promo-showcase {
    padding: 72px 0;
  }

  .avm-promo-carousel {
    gap: 20px;
    animation-duration: 38s;
  }

  .avm-promo-card {
    flex-basis: 200px !important;
    width: 200px !important;
    max-width: 200px !important;
    border-radius: 22px;
  }

  .avm-promo-cta {
    grid-template-columns: 1fr;
  }
}

/* Responsive smartphone */
@media (max-width: 640px) {
  .avm-promo-showcase {
    padding: 58px 0;
  }

  .avm-promo-carousel {
    gap: 16px;
    padding-bottom: 26px;
    animation-duration: 34s;
  }

  .avm-promo-card {
    flex-basis: 180px !important;
    width: 180px !important;
    max-width: 180px !important;
    border-radius: 20px;
  }

  .avm-promo-carousel-wrap::before,
  .avm-promo-carousel-wrap::after {
    width: 42px;
  }
}