/*
Theme Name: IPTVVERO
Theme URI: https://iptvvero.com/
Author: IPTVVERO Engineering
Author URI: https://iptvvero.com/
Description: Tema WordPress su misura ad alte prestazioni per IPTVVERO (iptvvero.com) — architettura bianca Chiarezza Mediterranea, SEO it-IT, schema JSON-LD e Core Web Vitals ottimizzati.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iptvvero
*/

:root {
  --iptvvero-bg: #FFFFFF;
  --iptvvero-surface: #F4F6F8;
  --iptvvero-surface-alt: #EEF2F6;
  --iptvvero-heading: #0B1320;
  --iptvvero-body: #334155;
  --iptvvero-muted: #64748B;
  --iptvvero-cypress: #1B4332;
  --iptvvero-cobalt: #2563EB;
  --iptvvero-cobalt-hover: #1D4ED8;
  --iptvvero-info-bg: #E0F2FE;
  --iptvvero-info-text: #0369A1;
  --iptvvero-whatsapp: #25D366;
  --iptvvero-whatsapp-hover: #1EBE5D;
  --iptvvero-border: #E2E8F0;
  --iptvvero-shadow: 0 12px 32px -12px rgba(11, 19, 32, 0.08);
  --iptvvero-radius-lg: 16px;
  --iptvvero-radius-md: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--iptvvero-body);
  background-color: var(--iptvvero-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: var(--iptvvero-heading);
  margin: 0;
  text-wrap: balance;
  line-height: 1.15;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.tabular-nums { font-variant-numeric: tabular-nums; }

.iptvvero-sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.iptvvero-skip-link:focus {
  position: fixed; top: 12px; left: 16px; z-index: 1000;
  width: auto; height: auto; clip: auto; padding: 10px 16px;
  background: var(--iptvvero-heading); color: #fff; border-radius: 8px;
}

.iptvvero-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .iptvvero-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.iptvvero-section { padding: 4rem 0; background: var(--iptvvero-bg); }
.iptvvero-section--stone {
  background: var(--iptvvero-surface);
  border-top: 1px solid var(--iptvvero-border);
  border-bottom: 1px solid var(--iptvvero-border);
}
.iptvvero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--iptvvero-cypress);
  margin-bottom: 0.5rem;
}

/* Header */
.iptvvero-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--iptvvero-border);
}
.iptvvero-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 64px;
}
.iptvvero-brand {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem; font-weight: 700; color: var(--iptvvero-heading);
  white-space: nowrap; flex-shrink: 0;
}
.iptvvero-nav { display: none; align-items: center; gap: 1.75rem; }
.iptvvero-nav a {
  font-size: 0.9375rem; font-weight: 500; color: var(--iptvvero-body);
  padding: 0.25rem 0; border-bottom: 2px solid transparent;
  white-space: nowrap; transition: color 150ms ease, border-color 150ms ease;
}
.iptvvero-nav a:hover, .iptvvero-nav li.current-menu-item a {
  color: var(--iptvvero-heading); border-bottom-color: var(--iptvvero-cobalt);
}
.iptvvero-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
@media (min-width: 768px) { .iptvvero-nav { display: flex; } }

.iptvvero-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: var(--iptvvero-radius-md);
  font-size: 0.9375rem; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background-color 150ms ease, color 150ms ease;
}
.iptvvero-btn--primary { background: var(--iptvvero-cobalt); color: #fff; }
.iptvvero-btn--primary:hover { background: var(--iptvvero-cobalt-hover); }
.iptvvero-btn--dark { background: var(--iptvvero-heading); color: #fff; }
.iptvvero-btn--dark:hover { background: #1E293B; }
.iptvvero-btn--outline { background: #fff; color: var(--iptvvero-heading); border-color: var(--iptvvero-border); }
.iptvvero-btn--outline:hover { background: var(--iptvvero-surface); }
.iptvvero-btn--whatsapp { background: var(--iptvvero-whatsapp); color: #fff; }
.iptvvero-btn--whatsapp:hover { background: var(--iptvvero-whatsapp-hover); }

.iptvvero-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--iptvvero-border); background: #fff; color: var(--iptvvero-heading);
  cursor: pointer;
}
@media (min-width: 768px) { .iptvvero-menu-toggle { display: none; } }

.iptvvero-mobile-drawer {
  display: none; background: #fff; border-top: 1px solid var(--iptvvero-border);
  padding: 1rem;
}
.iptvvero-mobile-drawer.is-open { display: block; }
.iptvvero-mobile-drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.iptvvero-mobile-drawer a { display: block; padding: 0.75rem; border-radius: 8px; font-weight: 500; }
.iptvvero-mobile-drawer a:hover { background: var(--iptvvero-surface); }

/* Grids & Cards */
.iptvvero-grid { display: grid; gap: 1.5rem; }
.iptvvero-grid--2 { grid-template-columns: 1fr; }
.iptvvero-grid--3 { grid-template-columns: 1fr; }
.iptvvero-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .iptvvero-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .iptvvero-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .iptvvero-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .iptvvero-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.iptvvero-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) {
  .iptvvero-hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.iptvvero-hero-title {
  font-size: clamp(2.125rem, 4vw, 3.25rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.iptvvero-card {
  background: #fff; border: 1px solid var(--iptvvero-border);
  border-radius: var(--iptvvero-radius-lg); padding: 1.5rem;
  box-shadow: var(--iptvvero-shadow);
}
.iptvvero-card--stone { background: var(--iptvvero-surface); box-shadow: none; }
.iptvvero-card--featured { border: 2px solid var(--iptvvero-cypress); }
.iptvvero-media-frame {
  border-radius: var(--iptvvero-radius-lg); overflow: hidden;
  border: 1px solid var(--iptvvero-border); background: var(--iptvvero-surface);
}

/* Segmented Controls & Quick Plan */
.iptvvero-segmented {
  display: inline-flex; padding: 4px; background: var(--iptvvero-surface);
  border: 1px solid var(--iptvvero-border); border-radius: 10px;
}
.iptvvero-segmented button {
  border: 0; background: transparent; padding: 0.45rem 0.85rem;
  border-radius: 7px; font-size: 0.875rem; font-weight: 600;
  color: var(--iptvvero-muted); cursor: pointer;
}
.iptvvero-segmented button[aria-pressed="true"] {
  background: var(--iptvvero-heading); color: #fff;
}

/* Comparison Table -> Mobile Cards */
.iptvvero-table-wrap {
  background: #fff; border: 1px solid var(--iptvvero-border);
  border-radius: var(--iptvvero-radius-lg); overflow: hidden;
}
.iptvvero-table { width: 100%; border-collapse: collapse; text-align: left; }
.iptvvero-table th, .iptvvero-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--iptvvero-border); }
.iptvvero-table thead th { background: var(--iptvvero-surface-alt); font-weight: 700; color: var(--iptvvero-heading); }
.iptvvero-table tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) {
  .iptvvero-table-wrap { border: 0; background: transparent; }
  .iptvvero-table, .iptvvero-table tbody, .iptvvero-table tr, .iptvvero-table td { display: block; width: 100%; }
  .iptvvero-table thead { display: none; }
  .iptvvero-table tr {
    background: #fff; border: 1px solid var(--iptvvero-border);
    border-radius: 14px; margin-bottom: 1rem; padding: 0.75rem;
  }
  .iptvvero-table td { border: 0; padding: 0.4rem 0.5rem; }
  .iptvvero-table td::before {
    content: attr(data-label); display: block; font-size: 0.75rem;
    font-weight: 700; color: var(--iptvvero-cypress); margin-bottom: 2px;
  }
}

/* FAQ Accordion */
.iptvvero-faq-item {
  background: #fff; border: 1px solid var(--iptvvero-border);
  border-radius: 14px; overflow: hidden; margin-bottom: 0.75rem;
}
.iptvvero-faq-trigger {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; cursor: pointer; font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--iptvvero-heading);
}
.iptvvero-faq-panel { padding: 0 1.25rem 1.15rem; border-top: 1px solid var(--iptvvero-border); }

/* Footer & Persistent WhatsApp */
.iptvvero-footer {
  background: var(--iptvvero-surface); border-top: 1px solid var(--iptvvero-border);
  padding: 3.5rem 0 5.5rem;
}
@media (min-width: 768px) { .iptvvero-footer { padding-bottom: 3.5rem; } }
.iptvvero-footer ul { list-style: none; padding: 0; margin: 0; }
.iptvvero-footer li { margin-bottom: 0.55rem; font-size: 0.875rem; }
.iptvvero-footer li a:hover { color: var(--iptvvero-heading); text-decoration: underline; }

.iptvvero-wa-float {
  position: fixed; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 50; width: 56px; height: 56px; border-radius: 9999px;
  background: var(--iptvvero-whatsapp); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  box-shadow: 0 12px 32px -8px rgba(11, 19, 32, 0.28);
  font-weight: 600; font-size: 0.9375rem;
  transition: transform 150ms ease, background-color 150ms ease;
}
.iptvvero-wa-float:hover { background: var(--iptvvero-whatsapp-hover); transform: translateY(-2px); }
.iptvvero-wa-float-label { display: none; }
.iptvvero-wa-float.is-hidden { display: none; }
@media (min-width: 768px) {
  .iptvvero-wa-float { right: 24px; bottom: 24px; width: auto; height: auto; padding: 0.85rem 1.25rem; }
  .iptvvero-wa-float-label { display: inline; }
}

:focus-visible { outline: 2px solid var(--iptvvero-cobalt); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
