/*
Theme Name: Geek Informatica
Theme URI: https://www.geekinformatica.it
Author: Geek Informatica
Description: Tema personalizzato per Geek Informatica - Santa Croce di Magliano
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: geek-informatica
*/

/* =============================================
   GEEK INFORMATICA — WordPress Theme 2025
   Palette: Rosso #CC1616 + Bianco
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --red: #CC1616;
  --red-dark: #aa1212;
  --red-light: rgba(204,22,22,0.08);
  --red-mid: rgba(204,22,22,0.15);
  --dark: #111118;
  --dark2: #2a2a35;
  --muted: #6b6b7a;
  --border: rgba(0,0,0,0.09);
  --bg: #ffffff;
  --bg2: #f7f7f7;
  --bg3: #f0f0f0;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(204,22,22,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(204,22,22,0.3); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1fb058; color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--dark); border: 2px solid var(--border); }
.btn-outline-dark:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* ---- HEADER / NAV ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
  overflow: hidden;
}
.site-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo span { color: var(--red); }
/* Logo immagine: altezza contenuta, mai overflow */
.logo-img,
.site-logo img,
.custom-logo {
  height: 42px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
  display: block;
}

.main-nav { overflow: hidden; }
.main-nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: nowrap;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.2s;
}
.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a { color: var(--dark); }
.main-nav a:hover::after,
.main-nav .current-menu-item a::after,
.main-nav .current_page_item a::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 8px 14px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.header-phone:hover { background: var(--red-dark); color: #fff; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); transition: all 0.3s; }

/* Mobile Menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,24,0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.8rem; font-weight: 800; color: #fff; text-decoration: none; }
.mobile-nav a:hover { color: var(--red); }
.mobile-nav-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: #fff; cursor: pointer; font-size: 2rem;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
  padding: 80px 0 72px;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('images/negozio.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(204,22,22,0.85) 0%, rgba(17,17,24,0.92) 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.15;
}
.hero h1 strong { color: #fff; }
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-note {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* ---- SECTION ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--muted); font-size: 1rem; max-width: 560px; margin: 0 auto; }
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: var(--red);
  opacity: 0.4;
}

/* ---- SERVICE CARDS ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.service-card:hover {
  border-color: rgba(204,22,22,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}
.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--red-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: var(--red);
  transition: background 0.2s;
}
.service-card:hover .service-icon { background: var(--red); color: #fff; }
.service-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--dark); }
.service-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ---- WHY US ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.why-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--red-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: var(--red);
}
.why-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.why-card p { font-size: 0.85rem; color: var(--muted); }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--red);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; font-size: 1rem; position: relative; z-index: 1; }
.cta-banner .btn-group { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---- STORE SECTION ---- */
.store-section { padding: 80px 0; background: var(--bg); }
.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.store-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.store-map iframe { width: 100%; height: 320px; border: none; display: block; }
.store-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 320px;
}
.store-photo img { width: 100%; height: 100%; object-fit: cover; }
.store-info { margin-top: 24px; }
.store-hours h4 { font-size: 0.9rem; color: var(--red); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.store-hours p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }

/* ---- OPERATORS GRID ---- */
.operators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.operator-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.25s;
}
.operator-card:hover {
  border-color: rgba(204,22,22,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.operator-name { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.operator-tag {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(204,22,22,0.2);
  margin-bottom: 12px;
}
.operator-price { font-size: 1.3rem; font-weight: 800; color: var(--red); margin: 10px 0 4px; }
.operator-features { text-align: left; margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.operator-features li { font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.operator-features li::before { content: '✓'; color: var(--red); font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }

/* ---- FIBRA GRID ---- */
.fibra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fibra-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.25s;
}
.fibra-card:hover {
  border-color: rgba(204,22,22,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.fibra-card.featured { border: 2px solid var(--red); position: relative; }
.fibra-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  padding: 4px 16px; border-radius: 100px; white-space: nowrap;
}
.fibra-carrier { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; }
.fibra-name { font-size: 1.2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.fibra-price { font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; }
.fibra-period { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.fibra-features { text-align: left; display: flex; flex-direction: column; gap: 6px; }
.fibra-features li { font-size: 0.88rem; color: var(--muted); display: flex; align-items: flex-start; gap: 6px; }
.fibra-features li::before { content: '✓'; color: var(--red); font-weight: 700; font-size: 0.8rem; flex-shrink: 0; margin-top: 2px; }
.fibra-btn { width: 100%; margin-top: 20px; text-align: center; }

/* ---- REPAIR LIST ---- */
.repair-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.repair-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: all 0.2s;
}
.repair-item:hover { border-color: rgba(204,22,22,0.3); background: var(--red-light); }
.repair-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--red-light);
  border: 1px solid rgba(204,22,22,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---- STEPS ---- */
.steps-list { display: flex; flex-direction: column; gap: 0; max-width: 620px; margin: 0 auto; }
.step { display: flex; gap: 20px; padding-bottom: 32px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step-num { position: relative; flex-shrink: 0; }
.step-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  color: var(--red);
  background: #fff;
  position: relative; z-index: 1;
}
.step-num::after {
  content: '';
  position: absolute;
  left: 50%; top: 44px;
  transform: translateX(-50%);
  width: 2px; height: calc(100% - 8px);
  background: linear-gradient(to bottom, var(--red), rgba(204,22,22,0));
}
.step:last-child .step-num::after { display: none; }
.step-body { padding-top: 8px; }
.step-body h3 { font-size: 1rem; margin-bottom: 6px; }
.step-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ---- CONTACT PAGE ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--red-light);
  border: 1px solid rgba(204,22,22,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 3px; }
.contact-value { font-size: 0.95rem; font-weight: 600; color: var(--dark); line-height: 1.6; }
.contact-value a { color: var(--red); }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table td { padding: 9px 0; font-size: 0.88rem; }
.hours-table td:last-child { text-align: right; color: var(--red); font-weight: 700; }
.hours-closed { color: var(--muted) !important; }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-map iframe { width: 100%; height: 360px; border: none; display: block; }

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--red);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 520px; line-height: 1.7; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin-bottom: 12px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .site-logo { color: #fff; font-size: 1.2rem; display: block; margin-bottom: 10px; text-decoration: none; }
.footer-brand .site-logo span { color: var(--red); }
.footer-desc { font-size: 0.85rem; line-height: 1.75; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: all 0.2s;
  text-decoration: none;
}
.social-link:hover { border-color: var(--red); color: var(--red); }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom a:hover { color: var(--red); }

/* ---- WA FLOAT ---- */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 300;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,0.6); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .main-nav ul { gap: 14px; }
  .main-nav a { font-size: 0.82rem; }
}
@media (max-width: 960px) {
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .operators-grid { grid-template-columns: repeat(2, 1fr); }
  .fibra-grid { grid-template-columns: 1fr 1fr; }
  .repair-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .store-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  /* Nasconde il numero di testo, lascia solo l'icona */
  .header-phone .phone-label { display: none; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .operators-grid, .fibra-grid, .repair-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0; min-height: auto; }
  .hero h1 { font-size: 1.65rem; }
  .hero-sub { font-size: 0.95rem; }
  .cta-banner { padding: 40px 0; }
  .cta-banner h2 { font-size: 1.3rem; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { justify-content: center; }
  .cta-banner .btn-group { flex-direction: column; align-items: stretch; }
  .cta-banner .btn-group .btn { justify-content: center; }
  .section-header h2 { font-size: 1.35rem; }
  .page-hero { padding: 40px 0 32px; }
  .page-hero h1 { font-size: 1.8rem; }
  .fibra-card.featured { margin-top: 16px; }
  .steps-list { padding: 0 8px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
}

/* ---- WP CORE ---- */
.aligncenter { display: block; margin: 0 auto; }
.alignright { float: right; margin: 0 0 16px 24px; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }
