/* iTechDeals — colori e stile ripresi da itechsnc.com */
:root {
  --red: #ED1C24;
  --red-dark: #c4121a;
  --ink: #1a1a1a;
  --ink-2: #343434;
  --muted: #6b6b6b;
  --line: #e3e3e3;
  --bg: #f3f3f3;
  --white: #fff;
  --green: #1f8a4c;
  --amazon: #ffa41c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.06);
  --f-head: "Bebas Neue", "Oswald", Impact, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.6;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.05) 1px, transparent 0);
  background-size: 22px 22px;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, .h-sec { font-family: var(--f-head); font-weight: 400; letter-spacing: .5px; line-height: 1.05; margin: 0 0 .4em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.55rem; }
.red { color: var(--red); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.section { padding: 40px 16px; }
.small { font-size: .85rem; }

/* top bar + header */
.topbar { background: var(--ink); color: #cfcfcf; font-size: .78rem; text-align: center; padding: 6px 0; }
.topbar a { color: #fff; text-decoration: underline; }
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: inline-flex; align-items: baseline; font-family: "Archivo", sans-serif; font-style: italic; font-weight: 900; font-size: 2rem; letter-spacing: -1px; text-decoration: none !important; background: var(--ink); padding: 2px 12px 4px 8px; border-radius: 6px; }
.logo-it { color: var(--red); }
.logo-ech { color: #fff; }
.logo-deals { font-family: var(--f-head); font-style: normal; font-weight: 400; color: var(--red); font-size: 1.35rem; letter-spacing: 2px; margin-left: 8px; }
.logo-sm { font-size: 1.5rem; }
.logo-sm .logo-deals { font-size: 1.05rem; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); font-family: var(--f-head); font-size: 1.25rem; letter-spacing: 1px; text-transform: uppercase; }
.nav a:hover { color: var(--red); text-decoration: none; }
.menu-toggle, .menu-btn { display: none; }
.catbar { background: var(--red); }
.catbar .wrap { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.catbar a { color: #fff; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* bottoni */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 6px; font-weight: 700; font-size: .95rem; text-decoration: none !important; transition: transform .1s, background .15s; border: 2px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-amazon { background: var(--amazon); color: var(--ink); }
.btn-amazon:hover { background: #f08c00; }
.btn .ico { width: 18px; height: 18px; }
.link-arrow { font-weight: 700; color: var(--red); }

/* hero */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.hero p { font-size: 1.1rem; color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-feature { display: block; background: var(--ink); color: #fff; padding: 30px; border-radius: var(--radius); border-left: 6px solid var(--red); text-decoration: none !important; box-shadow: var(--shadow); transition: transform .15s; }
.hero-feature:hover { transform: translateY(-3px); }
.hero-feature h2 { color: #fff; }
.hero-feature p { color: #cfcfcf; font-size: 1rem; }
.kicker { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--red); margin-bottom: 6px; }

/* categorie */
.h-sec { font-size: 2rem; border-left: 5px solid var(--red); padding-left: 12px; }
.h-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-align: center; font-size: .92rem; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--red); transform: translateY(-2px); text-decoration: none; }
.cat-tile .ico-lg { width: 34px; height: 34px; color: var(--red); }

/* card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 16/9; background: #eee; display: block; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.5rem; }
.card h3 a { color: var(--ink); }
.card p { color: var(--ink-2); font-size: .95rem; margin: 0 0 12px; flex: 1; }
.meta { font-size: .8rem; color: var(--muted); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 9px; border-radius: 4px; }
.art-head .badge { position: static; display: inline-block; margin-bottom: 10px; }
.badge-confronto { background: var(--ink); }
.badge-guida { background: #555; }
.tag-bozza { position: absolute; top: 12px; right: 12px; background: #ffd400; color: #000; font-size: .7rem; font-weight: 800; padding: 4px 8px; border-radius: 4px; }
.media-ph { width: 100%; height: 100%; min-height: 140px; display: grid; place-items: center; background: linear-gradient(135deg, #222 0%, #3a3a3a 100%); color: var(--red); }
.ico-xl { width: 64px; height: 64px; }
.vuoto { color: var(--muted); }

/* trust */
.trust { background: var(--ink); color: #fff; padding: 34px 0; margin-top: 20px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.trust b { display: block; font-family: var(--f-head); font-size: 2rem; font-weight: 400; color: var(--red); letter-spacing: 1px; }
.trust span { color: #cfcfcf; font-size: .92rem; }

/* page head */
.page-head { background: var(--ink); color: #fff; padding: 46px 0 38px; border-bottom: 5px solid var(--red); }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: #cfcfcf; margin: 6px 0 0; }

/* articolo */
.art-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 34px 0 26px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.prose { background: var(--white); padding: 30px 34px 40px; margin-top: 26px; margin-bottom: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose table:not(.spec):not(.confronto) { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose table:not(.spec):not(.confronto) th, .prose table:not(.spec):not(.confronto) td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.disclosure-inline { font-size: .82rem; color: var(--muted); background: var(--bg); border-left: 3px solid var(--red); padding: 10px 14px; border-radius: 4px; }
.avviso { background: #fff7cc; border: 1px solid #f0d000; padding: 10px 14px; border-radius: 6px; font-size: .9rem; }
.verdetto { background: var(--ink); color: #fff; padding: 24px 26px; border-radius: var(--radius); margin-top: 30px; border-left: 6px solid var(--red); }
.verdetto h2 { color: var(--red); margin-top: 0; }

/* box prodotto */
.box-prodotto { border: 2px solid var(--ink); border-radius: var(--radius); margin: 28px 0; overflow: hidden; }
.bp-head { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
.bp-media { background: #fff; display: grid; place-items: center; border-right: 1px solid var(--line); }
.bp-media img { max-height: 200px; object-fit: contain; padding: 10px; }
.bp-info { padding: 20px 22px; }
.bp-info h3 { margin-bottom: .2em; }
.bp-info p { margin: 0 0 14px; color: var(--ink-2); }
.bp-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.voto { display: inline-flex; align-items: baseline; gap: 2px; background: var(--red); color: #fff; border-radius: 6px; padding: 4px 10px; font-family: var(--f-head); }
.voto b { font-size: 1.8rem; font-weight: 400; line-height: 1; }
.voto span { font-size: 1rem; opacity: .85; }
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; border-top: 1px solid var(--line); }
.spec th, .spec td { text-align: left; padding: 8px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; color: var(--muted); font-weight: 600; }
.procon { display: grid; grid-template-columns: 1fr 1fr; }
.procon > div { padding: 16px 22px; }
.procon h4 { margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
.pro { background: #f1faf4; }
.pro h4 { color: var(--green); }
.contro { background: #fdf1f1; }
.contro h4 { color: var(--red); }
.procon ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.procon li { display: flex; gap: 8px; margin: 6px 0; }
.procon .ico { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; }
.pro .ico { color: var(--green); }
.contro .ico { color: var(--red); }

/* tabella confronto */
.tabella-scroll { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.confronto { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .92rem; }
.confronto th, .confronto td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.confronto thead th { background: var(--ink); color: #fff; font-family: var(--f-head); font-weight: 400; font-size: 1.25rem; letter-spacing: .5px; vertical-align: bottom; }
.confronto tbody th { color: var(--muted); font-weight: 600; width: 26%; }
.ct-media { height: 90px; margin-bottom: 8px; border-radius: 6px; overflow: hidden; }
.ct-media .media-ph { min-height: 90px; }
.ct-media .ico-xl { width: 40px; height: 40px; }
.confronto .btn { padding: 9px 14px; font-size: .85rem; }

/* footer */
.footer { background: var(--ink); color: #cfcfcf; margin-top: 50px; padding-top: 40px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-family: var(--f-head); font-weight: 400; font-size: 1.3rem; letter-spacing: 1px; margin: 0 0 10px; }
.footer-grid a:not(.logo) { display: block; color: #cfcfcf; margin: 4px 0; }
.footer-grid .small a { display: inline; color: #fff; }
.footer-legal { border-top: 1px solid #333; margin-top: 30px; padding-top: 18px; padding-bottom: 24px; font-size: .78rem; color: #999; }
.footer-legal a { color: #ccc; }
.footer-legal p { margin: 4px 0; }

/* mobile */
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; }
  .menu-btn { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .menu-btn span { width: 24px; height: 3px; background: var(--ink); border-radius: 2px; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 3px solid var(--red); }
  .nav a { padding: 12px 16px; border-top: 1px solid var(--line); }
  .menu-toggle:checked ~ .nav { display: flex; }
  .header-in { position: relative; }
  .bp-head { grid-template-columns: 1fr; }
  .bp-media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 150px; }
  .procon { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .prose { padding: 22px 18px 30px; border-radius: 0; margin-left: -16px; margin-right: -16px; }
  .spec th, .spec td { padding: 8px 14px; }
  .logo { font-size: 1.6rem; }
  .logo-deals { font-size: 1.1rem; }
}
