/*
Theme Name: SpazioiTech 2026
Theme URI: https://www.spazioitech.it
Description: Tema custom minimal tech premium per SpazioiTech
Author: SpazioiTech
Version: 1.0.0
License: Proprietary
Text Domain: spazioitech
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --accent: #00d68f;
  --accent-hover: #00b876;
  --accent-light: rgba(0, 214, 143, 0.08);
  --accent-border: rgba(0, 214, 143, 0.2);
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --nav-bg: #0a0a0a;
  --nav-text: rgba(255,255,255,0.7);
  --nav-text-hover: #ffffff;
  --footer-bg: #0a0a0a;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --transition: all 0.2s ease;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.top-bar__date {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.top-bar__socials {
  display: flex;
  gap: 16px;
}
.top-bar__socials a {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.top-bar__socials a:hover {
  color: var(--accent);
}

/* ============================================================
   HEADER
   ============================================================ */
.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;
}

.site-header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 9999;
  transition: background 0.5s ease, -webkit-backdrop-filter 0.5s ease, backdrop-filter 0.5s ease;
}
.site-header.header-scrolled {
  background: rgba(26, 26, 46, 0.5);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
}
.site-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.site-logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.site-logo span {
  color: var(--accent);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: var(--nav-text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--nav-text-hover);
  background: rgba(255,255,255,0.06);
}
.main-nav a.active {
  color: var(--accent);
}

/* Search toggle */
.search-toggle {
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: none;
  border: none;
  font-size: 18px;
  display: flex;
  align-items: center;
}
.search-toggle:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 20px;
  height: 20px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  transform-origin: center;
}
.mobile-toggle.active .hamburger span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.mobile-toggle.active .hamburger span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile menu overlay (outside header) */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998;
  background: var(--nav-bg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.mobile-menu-overlay.open {
  display: flex;
}
.mobile-menu-overlay a {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 24px;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  width: 80%;
  text-align: center;
  text-decoration: none;
}
.mobile-menu-overlay a:last-child { border-bottom: none; }
.mobile-menu-overlay a:hover { color: #fff; }
.mobile-menu-overlay a.active { color: var(--accent); }

@media (min-width: 769px) {
  .mobile-toggle { display: none !important; }
  .mobile-menu-overlay { display: none !important; }
}

/* Search overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.search-overlay.active {
  display: flex;
}
.search-overlay form {
  width: 90%;
  max-width: 600px;
}
.search-overlay input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  color: #fff;
  font-family: var(--font);
  font-size: 36px;
  font-weight: 300;
  padding: 16px 0;
  outline: none;
  transition: var(--transition);
}
.search-overlay input:focus {
  border-color: var(--accent);
}
.search-overlay input::placeholder {
  color: rgba(255,255,255,0.3);
}
.search-overlay__close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(255,255,255,0.5);
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
}
.search-overlay__close:hover {
  color: #fff;
}

/* ============================================================
   HERO (Featured Post)
   ============================================================ */
.hero {
  margin: 32px auto;
  max-width: var(--max-width);
  padding: 0 24px;
}
.hero-carousel {
  margin: 32px auto;
  max-width: var(--max-width);
  padding: 0 24px;
  position: relative;
}
.hero-carousel__track {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 21/9;
  background: #111;
}
.hero-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.hero-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.hero-carousel__dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}
.hero__card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #111;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero__card.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}
.hero__card img,
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero__card:hover img {
  transform: scale(1.03);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}
.hero__category {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  width: fit-content;
}
.hero__title {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  max-width: 700px;
}
.hero__meta {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
}
.hero__meta span {
  color: rgba(255,255,255,0.3);
  margin: 0 8px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}
.section-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.section-link:hover {
  color: var(--accent-hover);
}

/* ============================================================
   CONTENT GRID
   ============================================================ */
.content-area {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}
.main-content {
  min-width: 0;
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-secondary);
}
.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__thumb img {
  transform: scale(1.04);
}
.card__body {
  padding: 18px 20px 20px;
}
.card__category {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover .card__title {
  color: var(--accent-hover);
}
.card__excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.card__meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.card__meta .author {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Card small (list style) */
.card--small {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0;
  border: none;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
  padding: 14px 0;
}
.card--small:first-child {
  padding-top: 0;
}
.card--small:last-child {
  border-bottom: none;
}
.card--small:hover {
  transform: none;
  box-shadow: none;
}
.card--small .card__thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
}
.card--small .card__body {
  padding: 0 0 0 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card--small .card__title {
  font-size: 14px;
  -webkit-line-clamp: 2;
  margin-bottom: 4px;
}
.card--small .card__category {
  font-size: 10px;
  margin-bottom: 4px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
}
.sidebar-widget__title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Guide Acquisto widget */
.guide-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
}
.guide-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.guide-item:first-of-type {
  padding-top: 0;
}
.guide-item__thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.guide-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  transition: var(--transition);
}
.guide-item:hover .guide-item__title {
  color: var(--accent);
}
.guide-item__meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Trending widget */
.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.trending-item:first-child {
  padding-top: 0;
}
.trending-item__number {
  font-size: 28px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  min-width: 32px;
}
.trending-item__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  transition: var(--transition);
}
.trending-item:hover .trending-item__title {
  color: var(--accent);
}
.trending-item__meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   CATEGORY SECTION (colored top)
   ============================================================ */
.category-section {
  margin-bottom: 48px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.breadcrumb {
  max-width: 800px;
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-secondary);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb span {
  margin: 0 4px;
}
.breadcrumb .current,
.breadcrumb .breadcrumb__current {
  color: var(--text-primary);
}
.breadcrumb__sep {
  color: var(--text-muted);
}
.single-header {
  max-width: 800px;
  margin: 24px auto 32px;
  padding: 0 24px;
  text-align: center;
}
.single-header .card__category {
  font-size: 12px;
  margin-bottom: 16px;
}
.single-header h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.single-header .card__meta {
  font-size: 14px;
  color: var(--text-secondary);
}
.single-image {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.single-image img {
  border-radius: var(--radius-lg);
  width: 100%;
}
.single-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.single-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.single-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
}
.single-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.single-content img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}
.single-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.single-content a {
  color: var(--accent);
  font-weight: 500;
}
.single-content a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.single-content ul, .single-content ol {
  margin: 16px 0 24px 24px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.8;
}
.single-content li {
  margin-bottom: 8px;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-tags a {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  transition: var(--transition);
}
.post-tags a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* Related posts */
.related-posts {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ============================================================
   LOAD MORE
   ============================================================ */
.load-more {
  text-align: center;
  margin-top: 32px;
}
.load-more__btn {
  display: inline-block;
  background: var(--text);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 40px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.load-more__btn:hover {
  background: var(--accent);
  color: #000;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .current {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.5);
  padding: 64px 0 0;
  padding-bottom: 70px;
}
.site-footer .site-container {
  max-width: 100%;
  padding: 0 10%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .site-logo {
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  max-width: 320px;
}
.footer-brand .footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-brand .footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  transition: var(--transition);
}
.footer-brand .footer-socials a:hover {
  background: var(--accent);
  color: #000;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  padding: 3px 0;
  transition: var(--transition);
}
.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer-cat-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 16px;
}
.footer-cat-grid a {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  padding: 3px 0;
  transition: var(--transition);
}
.footer-cat-grid a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__title {
    font-size: 32px;
  }
  .hero__overlay {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .main-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9998;
    background: var(--nav-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    display: flex;
    display: none;
  }
  .main-nav.mobile-open {
    display: flex;
  }
  .main-nav a {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    padding: 14px 24px;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 80%;
    text-align: center;

  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a:hover {
    color: #fff;
    background: none;
  }
  .main-nav a.active {
    color: var(--accent);
    background: none;
  }
  .mobile-toggle {
    z-index: 9999;
    position: relative;
  }

  .hero-carousel { margin: 8px auto 16px; padding: 0 12px; }
  .hero-carousel__track { aspect-ratio: auto; height: 56vw; }
  .hero__card, .hero__card.active { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .hero__card.active { opacity: 1; pointer-events: auto; }
  .hero__card img, .hero__card .hero__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 40%, transparent 70%);
  }
  .hero__category { font-size: 9px; padding: 3px 8px; margin-bottom: 6px; }
  .hero__title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    color: #fff;
  }
  .hero__meta { font-size: 11px; }
  .hero-carousel__dots { margin-top: 8px; }
  .hero, .hero-carousel { margin: 12px auto 16px; padding: 0 12px; }
  .hero-carousel__dots { margin-top: 8px; }

  .cards-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .single-header h1 { font-size: 28px; }
  .single-content p { font-size: 16px; }

  .site-header .site-container { height: 56px; }
  .site-logo { font-size: 20px; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .site-container { padding: 0 16px; }
  .hero { padding: 0 16px; }
  .content-area { padding: 0 16px 32px; }
}

/* ── Deals Section ───────────────────────────── */
.deals-section {
  padding: 24px 0 8px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.deals-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.deals-grid::-webkit-scrollbar { height: 4px; }
.deals-grid::-webkit-scrollbar-track { background: transparent; }
.deals-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.deals-grid .deal-card {
  flex: 0 0 160px;
  min-width: 0;
}
.deal-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}
.deal-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.deal-card__img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
}
.deal-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.deal-card__name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.deal-card__prices {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.deal-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.deal-card__old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.deal-card__discount {
  font-size: 11px;
  font-weight: 700;
  background: #cc0c39;
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .deals-grid .deal-card {
    flex: 0 0 28%;
  }
  .deals-grid::-webkit-scrollbar { display: none; }
  .deals-grid { scrollbar-width: none; }
  .deal-card { padding: 8px; }
  .deal-card__img { height: 75px; }
  .deal-card__name { font-size: 12px; -webkit-line-clamp: 2; }
  .deal-card__price { font-size: 13px; }
  .deal-card__old-price { font-size: 10px; }
  .deal-card__discount { font-size: 10px; padding: 2px 5px; }
}

/* ── Recap Deals (offerte del giorno articles) ─────────────────────── */
.recap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.recap-deal {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-secondary);
  transition: box-shadow 0.2s;
  min-width: 0;
  overflow: hidden;
}
.recap-deal:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.recap-deal img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}
.recap-deal-info { width: 100%; }
.recap-deal-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.recap-deal-price {
  font-size: 18px;
  font-weight: 700;
  color: #B12704;
}
.recap-deal-discount {
  display: inline-block;
  background: #cc0c39;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
}
.recap-deal-btn {
  display: inline-block;
  background: #ff9900;
  color: #111 !important;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  margin-top: 8px;
}
.recap-deal-btn:hover { background: #e88a00; }
@media (max-width: 600px) {
  .recap-grid { gap: 10px; }
  .recap-deal img { width: 80px; height: 80px; }
  .recap-deal-title { font-size: 12px; }
  .recap-deal-price { font-size: 16px; }
  .recap-deal-btn { font-size: 12px; padding: 5px 12px; }
}

/* ── Telegram Banner ────────────────────────────────────────────────── */
.telegram-banner {
  margin: 24px 0;
}
.telegram-banner__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #0088cc 0%, #005f8c 100%);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
}
.telegram-banner__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.telegram-banner__text {
  flex: 1;
  color: #fff;
}
.telegram-banner__text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}
.telegram-banner__text span {
  font-size: 13px;
  opacity: 0.85;
}
.telegram-banner__btn {
  flex-shrink: 0;
  background: #fff;
  color: #0088cc;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.telegram-banner__btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .telegram-banner { display: none; }
  .telegram-banner__inner {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    padding: 12px 16px;
    gap: 10px;
  }
  .telegram-banner__icon {
    width: 36px;
    height: 36px;
  }
  .telegram-banner__icon svg { width: 20px; height: 20px; }
  .telegram-banner__text strong { font-size: 13px; }
  .telegram-banner__text span { display: none; }
  .telegram-banner__btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  .telegram-banner { margin: 12px 0; padding: 0 12px; }
}

/* === Product Cards (Guide) === */
.sit-product-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  margin: 20px 0;
  border: 2px solid #00d68f;
  border-radius: 12px;
  background: #fff;
  position: relative;
  transition: box-shadow 0.2s;
}
.sit-product-card:hover {
  box-shadow: 0 4px 20px rgba(0,214,143,0.15);
}
.sit-pc-rank {
  position: absolute;
  top: -12px;
  left: 20px;
  background: #00d68f;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sit-pc-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f8f8f8;
  padding: 8px;
}
.sit-pc-info {
  flex: 1;
  min-width: 0;
}
.sit-pc-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.sit-pc-price {
  font-size: 20px;
  font-weight: 800;
  color: #0066cc;
  margin-bottom: 8px;
}
.sit-pc-specs {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.sit-pc-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  margin-bottom: 10px;
}
.sit-pc-pros {
  font-size: 13px;
  color: #00a86b;
  margin-bottom: 4px;
}
.sit-pc-cons {
  font-size: 13px;
  color: #cc3333;
  margin-bottom: 12px;
}
.sit-amazon-btn {
  display: inline-block;
  background: #ff9900;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.sit-amazon-btn:hover {
  background: #e68a00;
}
@media (max-width: 600px) {
  .sit-product-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .sit-pc-img {
    width: 140px;
    height: 140px;
  }
}

/* Logo image */
.site-logo__img {
    height: 36px;
    width: auto;
    display: block;
}
@media (max-width: 768px) {
    .site-logo__img {
        height: 28px;
    }
}

/* ── Telegram Bottom Bar (mobile only, appare dopo offerte) ───────── */
.tg-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9990;
  background: rgba(26, 26, 46, 0.5);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  padding: 6px 12px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.tg-bar.visible {
  transform: translateY(0);
  pointer-events: auto;
}
.tg-bar__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-left: 4px;
}
.tg-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.tg-bar a:hover, .tg-bar a:active {
  background: rgba(255,255,255,0.1);
}
@media (max-width: 768px) {
  .tg-bar { display: flex; }
}

/* ── Telegram Desktop Widget (bottom-right) ────────────────────────── */
.tg-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
}
.tg-widget__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0088cc;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,136,204,0.4);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  animation: tgPulse 2s ease-in-out infinite;
}
.tg-widget__toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,136,204,0.5);
}
.tg-widget__toggle.open {
  animation: none;
  transform: rotate(45deg);
  background: #333;
}
@keyframes tgPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,136,204,0.4); }
  50% { box-shadow: 0 4px 24px rgba(0,136,204,0.6); }
}
.tg-widget__panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tg-widget__panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.tg-widget__header {
  padding: 16px 20px 12px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 1px solid #f0f0f0;
}
.tg-widget__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.2s ease;
}
.tg-widget__link:hover {
  background: #f8f8f8;
}
.tg-widget__link strong {
  font-size: 14px;
  display: block;
  line-height: 1.2;
}
.tg-widget__link small {
  font-size: 11px;
  color: #888;
  line-height: 1.2;
}
.tg-widget__photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .tg-widget { display: none; }
}

/* Floating Telegram popup - REPLACED */
.tg-float {
  display: none !important;
  position: fixed;
  bottom: 20px;
  right: 16px;
  background: #0088cc;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 9999;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #fff;
}
.tg-float:hover, .tg-float:active {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.tg-float svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  flex-shrink: 0;
}
.tg-float__text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}
.tg-float__sub {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
  display: block;
}
@media (max-width: 768px) {
  .tg-float { display: none !important; }
}

/* Image credit */
.image-credit {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
  font-style: italic;
}
.footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
  line-height: 1.5;
}
.footer-disclaimer a {
  color: rgba(255,255,255,0.35);
  text-decoration: underline;
}

/* ── Scroll Reveal — Apple Newsroom style ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0, 1),
              transform 1s cubic-bezier(0.4, 0, 0, 1);
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Share buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
}
.share-buttons__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 4px;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}
.share-btn:hover { transform: scale(1.1); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn--wa { background: #25D366; color: #fff; }
.share-btn--tg { background: #0088cc; color: #fff; }
.share-btn--fb { background: #1877F2; color: #fff; }
.share-btn--x { background: #000; color: #fff; }
.share-btn--copy { background: var(--bg-secondary); color: var(--text-secondary); }
.share-btn--copy:hover { background: var(--accent); color: #fff; }

/* Affiliate disclaimer */
.affiliate-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.affiliate-disclaimer svg { flex-shrink: 0; margin-top: 2px; }
.affiliate-disclaimer a { color: var(--accent); }
