/*
Theme Name: NapoliIT Custom Pro V13
Theme URI: https://www.napoliit.it/
Author: Giuseppe Colantuono / Elettra Automazioni
Author URI: https://www.napoliit.it/
Description: Tema WordPress completamente nuovo, indipendente da Astra, responsive e pensato per NapoliIT / Elettra Automazioni. Versione con una sola statistica ufficiale visibile e rimozione duplicati esterni, menu a tendina, homepage professionale, articoli e prodotti più visti e recensioni rotanti.
Version: 1.1.2
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: napoliit-custom-pro-v13
Tags: custom-logo, custom-menu, responsive-layout, e-commerce, blog
*/

:root {
  --ea-red: #b40000;
  --ea-red-dark: #650000;
  --ea-yellow: #ffe500;
  --ea-black: #111111;
  --ea-white: #ffffff;
  --ea-soft: #fff8dc;
  --ea-gray: #f5f5f5;
  --ea-text: #202020;
  --ea-muted: #5d5d5d;
  --ea-border: rgba(0,0,0,.10);
  --ea-shadow: 0 16px 42px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ea-text);
  background: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--ea-red); }
a:hover { color: var(--ea-red-dark); }

.napoliit-container {
  width: min(1180px, calc(100% - 30px));
  margin: 0 auto;
}
.napoliit-container-narrow {
  width: min(940px, calc(100% - 30px));
  margin: 0 auto;
}

/* Header */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--ea-border);
  box-shadow: 0 8px 28px rgba(0,0,0,.07);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 92px;
  padding: 10px 0;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.custom-logo-link img {
  display: block;
  max-width: 280px;
  max-height: 86px;
  width: auto;
  height: auto;
}
.fallback-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #c40000;
  color: var(--ea-yellow);
  border: 3px solid #111;
  border-radius: 14px;
  padding: 10px 18px 8px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}
.fallback-logo .big,
.fallback-logo .sub {
  font-weight: 1000;
  font-size: clamp(28px, 4vw, 42px);
  line-height: .86;
  letter-spacing: -.04em;
  text-shadow: 2px 2px 0 rgba(0,0,0,.55);
}
.fallback-logo .small {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-top: 4px;
}
.site-title-wrap {
  min-width: 0;
}
.site-title {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.1;
  color: #071a44;
  font-weight: 950;
}
.site-title a {
  color: inherit;
  text-decoration: none;
}
.site-description {
  margin: 4px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 650;
}
.header-phone {
  white-space: nowrap;
  text-align: right;
}
.header-phone a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ea-red);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

/* Menu */
.menu-row {
  border-top: 1px solid rgba(0,0,0,.06);
  background: #fff;
}
.menu-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.primary-menu,
.primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.primary-menu > li {
  position: relative;
}
.primary-menu a {
  display: block;
  padding: 15px 16px;
  color: #111;
  text-decoration: none;
  font-weight: 900;
  border-radius: 12px;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: var(--ea-soft);
  color: var(--ea-red-dark);
}
.primary-menu .menu-item-has-children > a::after,
.primary-menu .page_item_has_children > a::after {
  content: " ▾";
  font-size: .85em;
}
.primary-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 235px;
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
  overflow: hidden;
  z-index: 1000;
}
.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul {
  display: block;
}
.primary-menu li ul a {
  border-radius: 0;
  padding: 12px 15px;
}
.mobile-toggle {
  display: none;
  border: 0;
  background: var(--ea-red);
  color: #fff;
  border-radius: 999px;
  padding: 12px 15px;
  font-weight: 950;
  cursor: pointer;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(255,229,0,.28), transparent 28%),
    linear-gradient(135deg, #610000, #b40000 58%, #111);
  color: #fff;
  padding: clamp(38px, 6vw, 78px) 0;
}
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.stats-strip span {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
}
.stats-strip strong { color: var(--ea-yellow); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(255,229,0,.14);
  color: var(--ea-yellow);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.hero h1 {
  color: #fff;
  margin: 0 0 18px;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 1000;
}
.hero p {
  color: rgba(255,255,255,.92);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  margin: 0 0 22px;
}
.hero-box {
  background: rgba(255,255,255,.96);
  color: #111;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--ea-shadow);
}
.hero-box h2 {
  color: var(--ea-red-dark);
  font-size: clamp(25px, 3vw, 34px);
  margin: 0 0 12px;
  line-height: 1.05;
  font-weight: 1000;
}
.hero-box p,
.hero-box li {
  color: #333;
  font-weight: 650;
}
.hero-box ul {
  margin: 18px 0 0;
  padding-left: 18px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}
.btn-yellow { background: var(--ea-yellow); color: #250000 !important; }
.btn-white { background: #fff; color: var(--ea-red-dark) !important; }
.btn-red { background: var(--ea-red); color: #fff !important; }
.btn-wa { background: #16a34a; color: #fff !important; }

/* Sections */
.section {
  padding: clamp(48px, 6vw, 82px) 0;
}
.section.alt { background: var(--ea-soft); }
.section.dark {
  background: #111;
  color: #fff;
}
.section-title {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}
.section-title.left { text-align: left; margin-left: 0; margin-right: 0; }
.section-title span {
  color: var(--ea-red);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
}
.section.dark .section-title span { color: var(--ea-yellow); }
.section-title h2 {
  margin: 8px 0 0;
  color: #141414;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  font-weight: 1000;
  letter-spacing: -.035em;
}
.section.dark .section-title h2 { color: #fff; }

/* Cards */
.top-list {
  display: grid;
  gap: 16px;
}
.top-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--ea-border);
  box-shadow: 0 10px 26px rgba(0,0,0,.07);
  border-left: 8px solid var(--ea-yellow);
}
.top-item .rank {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ea-red), var(--ea-red-dark));
  color: #fff;
  font-size: 32px;
  font-weight: 1000;
}
.top-item h3,
.post-card h3,
.product-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.15;
}
.top-item h3 a,
.post-card h3 a,
.product-card h3 a {
  color: #111;
  text-decoration: none;
}
.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #555;
  font-weight: 750;
  font-size: 14px;
}

/* Carousel */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 44px 16px;
}
.carousel-track::-webkit-scrollbar { height: 10px; }
.carousel-track::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 999px; }
.slide {
  min-width: calc(33.333% - 12px);
  scroll-snap-align: start;
}
.carousel .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.20);
}
.carousel .prev { left: 0; }
.carousel .next { right: 0; }

.post-card,
.review-card,
.product-card,
.power-card {
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  height: 100%;
}
.thumb {
  display: block;
  min-height: 215px;
  background: #f5f5f5;
}
.thumb img {
  width: 100%;
  height: 215px;
  display: block;
  object-fit: cover;
}
.thumb-fallback {
  display: grid;
  place-items: center;
  min-height: 215px;
  background: #fff0a8;
  color: var(--ea-red-dark);
  font-size: 22px;
  font-weight: 1000;
}
.card-body { padding: 20px; }
.meta {
  color: var(--ea-red-dark);
  font-weight: 850;
  font-size: 13px;
  margin-bottom: 8px;
}
.post-card p {
  color: #444;
  font-weight: 600;
  margin: 0 0 14px;
}
.read-more {
  color: var(--ea-red);
  font-weight: 950;
  text-decoration: none;
}

.review-card {
  padding: 24px;
}
.stars {
  color: #f4b400;
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.review-text {
  color: #333;
  font-size: 17px;
  min-height: 110px;
  margin: 0 0 14px;
}
.review-author { font-weight: 950; color: #111; }
.review-post { color: #777; font-size: 14px; margin-top: 5px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.product-card .price {
  color: var(--ea-red);
  font-weight: 950;
}

/* Google power page */
.power-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}
.power-card {
  background: var(--ea-soft);
  padding: 24px;
}
.power-card h3 {
  margin: 0 0 10px;
  color: var(--ea-red-dark);
  font-size: 24px;
  font-weight: 1000;
}
.power-card p,
.power-card li {
  color: #333;
  font-weight: 650;
}
.power-card ul { margin: 0; padding-left: 18px; }
.power-cta { margin-top: 22px; }

/* Content pages */
.content-wrap {
  padding: 54px 0;
}
.entry-card {
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.entry-title {
  margin-top: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.entry-content img { border-radius: 16px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

/* Footer */
.site-footer {
  background: #111;
  color: #fff;
  padding: 38px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}
.footer-title {
  font-size: 22px;
  font-weight: 1000;
  color: var(--ea-yellow);
}
.footer-text {
  color: rgba(255,255,255,.82);
  margin-top: 5px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-phone { display: none; }
  .site-title-wrap { display: none; }
  .hero-grid,
  .power-grid,
  .product-grid { grid-template-columns: 1fr 1fr; }
  .slide { min-width: calc(50% - 9px); }
  .posts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .header-inner { min-height: 74px; }
  .custom-logo-link img { max-width: 170px; max-height: 70px; }
  .fallback-logo .big,
  .fallback-logo .sub { font-size: 28px; }
  .fallback-logo .small { font-size: 12px; }
  .mobile-toggle { display: inline-flex; }
  .menu-row { display: none; }
  .menu-row.open { display: block; }
  .menu-inner { justify-content: stretch; }
  .primary-menu { flex-direction: column; align-items: stretch; width: 100%; padding: 8px 0; }
  .primary-menu a { border-radius: 10px; padding: 13px 14px; }
  .primary-menu li ul {
    position: static;
    display: block;
    min-width: 0;
    box-shadow: none;
    border: 0;
    background: #fafafa;
    margin-left: 12px;
  }
  .hero { padding: 30px 0 44px; }
  .hero-grid,
  .power-grid,
  .product-grid,
  .posts-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(35px, 11vw, 50px); }
  .btn { width: 100%; }
  .carousel-track { padding-inline: 0; }
  .carousel .nav { display: none; }
  .slide { min-width: 88%; }
  .top-item {
    grid-template-columns: 54px 1fr;
    padding: 18px;
    gap: 14px;
  }
  .top-item .rank {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }
  .footer-grid { grid-template-columns: 1fr; }
}


/* V2 - menu a tendina sempre visibile quando passa il mouse */
.primary-menu > li.napoliit-services-menu {
  position: relative;
}
.primary-menu > li.napoliit-services-menu > a {
  background: #fff8dc;
  color: #650000;
}
.primary-menu > li.napoliit-services-menu > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0,0,0,.20);
  overflow: hidden;
  z-index: 1001;
}
.primary-menu > li.napoliit-services-menu:hover > ul,
.primary-menu > li.napoliit-services-menu:focus-within > ul {
  display: block;
}
.primary-menu > li.napoliit-services-menu > ul a {
  border-radius: 0;
  padding: 13px 16px;
}
@media (max-width: 767px) {
  .primary-menu > li.napoliit-services-menu > ul {
    position: static;
    display: block;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-radius: 12px;
    margin-left: 12px;
    background: #fafafa;
  }
}


/* V3 - una sola statistica ufficiale */
.stats-strip {
  position: relative;
  padding-left: 0;
}
.stats-strip::before {
  content: "Statistiche ufficiali sito";
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--ea-yellow);
  color: #250000;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Nasconde eventuali vecchi blocchi statistiche dei temi prova precedenti */
.napoliit-v2-stats-strip,
.napoliit-v3-stats-strip {
  display: none !important;
}


/* V4 - forza nascondere vecchie barre statistiche duplicate esterne */
[data-hidden-duplicate-stats="1"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* eventuali classi note dei test precedenti */
.napoliit-v2-stats-strip,
.napoliit-v3-stats-strip,
.ea-mobile-stats,
.ea-stats-floating,
.ea-online-counter,
.online-counter,
.visit-counter,
.visite-online,
#ea-mobile-stats,
#ea-stats-floating,
#online-counter,
#visit-counter {
  display: none !important;
}


/* V5 - footer crediti, categorie prodotti, telefoni cliccabili, WhatsApp con icona */
.footer-meta {
  margin-top: 10px;
  color: rgba(255,255,255,.86);
  font-weight: 650;
}
.footer-meta a {
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}
.footer-credit {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: var(--ea-yellow);
  font-weight: 950;
}
.footer-stats-wrap {
  margin-top: 18px;
}
.site-footer .stats-strip {
  margin-bottom: 0;
}
.site-footer .stats-strip::before {
  content: "Statistiche ufficiali sito";
}

.wa-icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: -4px;
  margin-right: 7px;
  fill: currentColor;
}
.btn-wa {
  gap: 4px;
}

.product-categories-section {
  padding: 34px 0;
  background: #fff;
}
.product-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.product-cat-card {
  display: block;
  background: #fff8dc;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 20px;
  padding: 18px;
  color: #111;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  font-weight: 900;
}
.product-cat-card:hover {
  background: var(--ea-yellow);
  color: #3a0000;
}
.product-cat-card small {
  display: block;
  margin-top: 5px;
  color: #650000;
  font-weight: 800;
}

.woocommerce-product-categories-box {
  margin-bottom: 24px;
  padding: 22px;
  background: #fff8dc;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 22px;
}
.woocommerce-product-categories-box h2 {
  margin: 0 0 15px;
  color: #650000;
  font-size: 28px;
  font-weight: 1000;
}
.woocommerce-product-categories-box .product-cat-grid {
  grid-template-columns: repeat(5, minmax(0,1fr));
}

.ai-attraction-page {
  background: linear-gradient(135deg, #fff8dc, #fff);
}
.ai-attraction-page .power-card {
  background: #fff;
}

@media (max-width: 1024px) {
  .product-cat-grid,
  .woocommerce-product-categories-box .product-cat-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 767px) {
  .product-cat-grid,
  .woocommerce-product-categories-box .product-cat-grid {
    grid-template-columns: 1fr;
  }
}


/* V6 - richiesta riparazione */
.repair-request-section {
  padding: clamp(48px, 6vw, 82px) 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(255,229,0,.22), transparent 28%),
    linear-gradient(135deg, #650000, #b40000 58%, #111);
  color: #fff;
}

.repair-request-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.repair-request-copy h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  margin: 8px 0 14px;
  font-weight: 1000;
  letter-spacing: -.035em;
}

.repair-request-copy p {
  color: rgba(255,255,255,.92);
  font-size: 18px;
  font-weight: 650;
}

.repair-request-card {
  background: rgba(255,255,255,.97);
  color: #111;
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--ea-shadow);
}

.repair-request-form {
  display: grid;
  gap: 14px;
}

.repair-request-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
  color: #650000;
}

.repair-request-form input,
.repair-request-form textarea,
.repair-request-form select {
  width: 100%;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: #111;
}

.repair-request-form textarea {
  min-height: 130px;
  resize: vertical;
}

.repair-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.repair-note {
  color: #555;
  font-size: 13px;
  margin: 8px 0 0;
  font-weight: 650;
}

.stats-strip .stat-online strong:empty::before {
  content: "0";
}

@media (max-width: 900px) {
  .repair-request-grid {
    grid-template-columns: 1fr;
  }
}


/* V7 - form unico richieste info / assistenza / manuali / PDF */
.request-universal-section {
  padding: clamp(50px, 6vw, 86px) 0;
  background:
    radial-gradient(circle at 84% 12%, rgba(255,229,0,.24), transparent 30%),
    linear-gradient(135deg, #650000 0%, #b40000 58%, #111 100%);
  color: #fff;
}

.request-universal-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 30px;
  align-items: start;
}

.request-universal-copy h2 {
  color: #fff;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.03;
  margin: 8px 0 15px;
  font-weight: 1000;
  letter-spacing: -.04em;
}

.request-universal-copy p {
  color: rgba(255,255,255,.92);
  font-size: 18px;
  font-weight: 650;
}

.request-universal-card {
  background: rgba(255,255,255,.98);
  color: #111;
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--ea-shadow);
}

.request-universal-form {
  display: grid;
  gap: 14px;
}

.request-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.request-universal-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
  color: #650000;
}

.request-universal-form input,
.request-universal-form textarea,
.request-universal-form select {
  width: 100%;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: #111;
}

.request-universal-form textarea {
  min-height: 135px;
  resize: vertical;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.request-note {
  color: #555;
  font-size: 13px;
  margin: 8px 0 0;
  font-weight: 650;
}

.stats-strip [data-stat="online"].stat-missing strong {
  color: #fff;
}
.stats-strip [data-stat="online"].stat-missing strong::after {
  content: " dato non disponibile";
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 700;
  margin-left: 3px;
}

@media (max-width: 900px) {
  .request-universal-grid,
  .request-row-2 {
    grid-template-columns: 1fr;
  }
}


/* V8 - form richiesta ben visibile in homepage */
.home-request-section {
  padding: clamp(48px, 6vw, 86px) 0;
  background:
    radial-gradient(circle at 84% 10%, rgba(255,229,0,.24), transparent 30%),
    linear-gradient(135deg, #650000 0%, #b40000 58%, #111 100%);
  color: #fff;
}

.home-request-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 30px;
  align-items: start;
}

.home-request-copy h2 {
  color: #fff;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.03;
  margin: 8px 0 15px;
  font-weight: 1000;
  letter-spacing: -.04em;
}

.home-request-copy p {
  color: rgba(255,255,255,.92);
  font-size: 18px;
  font-weight: 650;
}

.home-request-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.home-request-pills span {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.home-request-card {
  background: rgba(255,255,255,.98);
  color: #111;
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--ea-shadow);
}

.home-request-card h3 {
  margin: 0 0 14px;
  color: #650000;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  font-weight: 1000;
}

.home-request-form {
  display: grid;
  gap: 14px;
}

.home-request-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.home-request-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
  color: #650000;
}

.home-request-form input,
.home-request-form textarea,
.home-request-form select {
  width: 100%;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: #111;
}

.home-request-form textarea {
  min-height: 145px;
  resize: vertical;
}

.home-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.home-request-note {
  color: #555;
  font-size: 13px;
  margin: 8px 0 0;
  font-weight: 650;
}

@media (max-width: 900px) {
  .home-request-grid,
  .home-request-row {
    grid-template-columns: 1fr;
  }
}


/* V9 - homepage corposa */
.home-rich-section {
  padding: clamp(48px, 6vw, 82px) 0;
}

.home-rich-section.alt {
  background: #fff8dc;
}

.home-rich-section.dark {
  background: #111;
  color: #fff;
}

.home-rich-section.dark .section-title h2,
.home-rich-section.dark h3 {
  color: #fff;
}

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

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

.service-card-rich,
.month-card,
.home-info-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,.07);
}

.service-card-rich h3,
.month-card h3,
.home-info-card h3 {
  margin: 0 0 10px;
  color: #650000;
  font-size: 22px;
  font-weight: 1000;
  line-height: 1.1;
}

.service-card-rich p,
.month-card p,
.home-info-card p {
  color: #444;
  font-weight: 650;
  margin: 0;
}

.service-icon-rich {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe500, #fff5a8);
  color: #650000;
  font-size: 27px;
  font-weight: 1000;
  margin-bottom: 14px;
}

.month-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.month-list a {
  text-decoration: none;
  color: #111;
  font-weight: 850;
}

.month-list a:hover {
  color: #b40000;
}

.home-big-cta {
  background: linear-gradient(135deg, #ffe500, #fff7b4 58%, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 46px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.home-big-cta h2 {
  margin: 0 0 10px;
  color: #650000;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 1000;
}

.home-big-cta p {
  margin: 0;
  color: #333;
  font-weight: 700;
  font-size: 18px;
}

.home-rich-form-anchor {
  scroll-margin-top: 120px;
}

.form-alert-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffe500;
  color: #250000;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 1000;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}

.home-request-section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.home-request-card {
  position: relative;
  z-index: 2;
}

.home-request-form input,
.home-request-form textarea,
.home-request-form select {
  min-height: 46px;
}

.home-request-actions .btn {
  flex: 1 1 210px;
}

@media (max-width: 1024px) {
  .home-rich-grid-4 {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .home-big-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .home-rich-grid-4,
  .home-rich-grid-3 {
    grid-template-columns: 1fr;
  }
}


/* V10 - pagina controllo statistiche */
.stats-control-page { padding: clamp(48px, 6vw, 82px) 0; background: #fff8dc; }
.stats-control-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin: 22px 0; }
.stats-control-card, .stats-control-box {
  background: #fff; border: 1px solid rgba(0,0,0,.09); border-radius: 24px; padding: 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,.07);
}
.stats-control-card .label { color: #650000; font-weight: 1000; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.stats-control-card .value { font-size: clamp(32px, 4vw, 52px); line-height: 1; font-weight: 1000; color: #111; margin-top: 8px; }
.stats-control-box { margin-top: 18px; }
.stats-control-box h3 { margin: 0 0 12px; color: #650000; font-size: 24px; font-weight: 1000; }
.stats-control-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 16px; }
.stats-control-table th, .stats-control-table td { text-align: left; padding: 12px; border-bottom: 1px solid rgba(0,0,0,.08); }
.stats-control-table th { background: #111; color: #fff; }
.stats-raw { white-space: pre-wrap; word-break: break-word; background: #111; color: #ffe500; border-radius: 16px; padding: 16px; font-family: Consolas, monospace; font-size: 13px; }
.stats-refresh-note { color: #555; font-weight: 700; margin-top: 12px; }
@media (max-width: 1024px) { .stats-control-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 767px) { .stats-control-grid { grid-template-columns: 1fr; } }


/* V11 - tracker IP integrato nel tema */
.napoliit-theme-version {
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  color: #650000;
  background: #fff8dc;
}


/* V12 - tracker motori di ricerca e query */
.napoliit-theme-version {
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  color: #650000;
  background: #fff8dc;
}


/* V13 - tracker pagine viste oggi/mese/totali */
.napoliit-theme-version {
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  color: #650000;
  background: #fff8dc;
}
