*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #c0202a;
  --red-dark: #96181f;
  --dark: #1a1a1a;
  --mid: #555;
  --light: #f4f2ef;
  --white: #fff;
  --border: #e0dbd5;
  --max: 1280px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; background: var(--white); color: var(--dark); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 82px;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-logo .brand { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: 1px; line-height: 1; }
.nav-logo .tagline { font-size: 10px; color: var(--red); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--mid); text-decoration: none; padding: 6px 11px; border-radius: 4px; transition: all .15s; }
.nav-links a:hover { color: var(--dark); background: var(--light); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.nav-dl { font-size: 13px; font-weight: 500; color: var(--mid); text-decoration: none; padding: 7px 16px; border: 1px solid var(--border); border-radius: 4px; transition: all .15s; }
.nav-dl:hover { border-color: var(--red); color: var(--red); }
.nav-cta { background: var(--red); color: #fff; padding: 8px 18px; font-size: 13px; font-weight: 600; text-decoration: none; border-radius: 4px; transition: background .15s; }
.nav-cta:hover { background: var(--red-dark); }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 4px; color: var(--mid); text-decoration: none; transition: all .15s; border: 1px solid transparent; }
.nav-icon:hover { color: var(--red); border-color: var(--border); background: var(--light); }
.nav-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-search-box { display: none; position: absolute; top: 62px; right: 0; left: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 52px; z-index: 99; }
.nav-search-box.open { display: flex; gap: 10px; align-items: center; }
.nav-search-box input { flex: 1; height: 40px; font-size: 14px; border: 1px solid var(--border); border-radius: 4px; padding: 0 14px; font-family: inherit; outline: none; }
.nav-search-box input:focus { border-color: var(--red); }
.nav-search-box button { height: 40px; padding: 0 18px; background: var(--red); color: #fff; border: none; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }

.breadcrumb {
  margin-top: 80px;
  padding: 20px;
  font-size: 12px; color: var(--mid);
  border-bottom: 1px solid var(--border);
}

.breadcrumb .int{position: relative; max-width: var(--max); margin: auto;
  padding: 0 40px;
  display: flex; align-items: center; gap: 8px;

}
.breadcrumb a { color: var(--mid); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: #ccc; font-size: 10px; }
.breadcrumb span { color: var(--dark); font-weight: 500; }


css/* ── NAV DROPDOWN ─────────────────────────────────────── */
.nav-links li { position: relative; }


li.has-dropdown {
  position: relative;
  padding-bottom: 10px;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;        /* ← niente gap */
  left: 0;        /* ← ancorato al bordo sinistro del li */
  transform: none;      /* ← rimuovi il translate */
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  min-width: 200px;
  list-style: none;

  padding: 6px 0;
  z-index: 200;
  opacity: 0;
  translateY: 6px;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

/* aperto */
.has-dropdown:hover .nav-dropdown,
.has-dropdown.open .nav-dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* triangolino allineato a sinistra */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 16px;   /* ← non più centrato */
  transform: none;
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: var(--border);
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -5px; left: 17px;
  transform: none;
  border: 5px solid transparent;
  border-top: 0;
  border-bottom-color: #fff;
}


.nav-dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  white-space: nowrap;
  transition: all .12s;
}
.nav-dropdown li a:hover,
.nav-dropdown li a.active {
  color: var(--red);
  background: #fdf9f9;
}
.nav-dropdown li + li {
  border-top: 1px solid var(--border-light, #ece8e3);
}

/* freccia rotante */
.nav-arrow {
  display: inline-block;
  font-size: 10px;
  margin-left: 4px;
  transition: transform .18s;
  vertical-align: middle;
}
.has-dropdown:hover .nav-arrow,
.has-dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

/* ── MOBILE: dropdown diventa accordion ─────────────── */
@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--light);
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    display: none;
  }
  .has-dropdown.open .nav-dropdown {
    display: block;
  }
  .nav-dropdown li a {
    padding: 10px 24px;
    font-size: 14px;
    border-top: 1px solid var(--border);
  }
  .nav-dropdown::before,
  .nav-dropdown::after { display: none; }
}


/* ── HERO — solo immagine ── */
.hero {
  margin-top: 0px;
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
  display: block;
  line-height: 0;
  max-height: 520px;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
  object-position: center 30%;
}

.hero-content {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.hero-title { font-size: clamp(32px, 6vw, 64px); font-weight: 700;  line-height: 1; text-shadow: 0 0 6px rgba(0,0,0,0.2); }
.hero-sub { font-size: clamp(18px, 3vw, 30px); font-weight: 300; line-height: 1; text-shadow: 0 0 6px rgba(0,0,0,0.2); }

.hero-button {
  display: inline-block; margin-top: 20px;
  padding: 18px 28px; background: var(--red);
  color: #fff; font-size: 20px; font-weight: 600;
  text-decoration: none; border-radius: 4px;
  transition: background .15s;
}
.hero-button:hover { background: var(--red-dark); }


/* ── SOFTWARE ── */
.software-section { background: var(--white);}
.software-inner { max-width: var(--max); margin: 0 auto; padding: 72px 40px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.section-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 8px; }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(26px, 3vw, 38px); font-weight: 700; text-transform: uppercase; color: var(--dark); line-height: 1.05; }
.view-all { font-size: 13px; font-weight: 500; color: var(--red); text-decoration: none; white-space: nowrap; }
.view-all:hover { text-decoration: underline; }

.sw-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.sw-card { background: var(--white); padding: 32px 28px; position: relative; overflow: hidden; text-decoration: none; display: block; transition: background .15s; }
.sw-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.sw-img { width: 100%; height: 160px; background: var(--border); margin-bottom: 20px; border-radius: 4px; background-size: cover; background-position: center; background-repeat: no-repeat; }

.sw-card:hover::before { transform: scaleX(1); }
.sw-card:hover { background: #fdf9f9; }
.sw-card:hover .sw-name { color: var(--red); }
.sw-tag { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; opacity: .85; }
.sw-name { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 700; color: var(--dark); text-transform: uppercase; margin-bottom: 10px; transition: color .15s; letter-spacing: 0.5px; }
.sw-desc { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 18px; }
.sw-features { list-style: none; margin-bottom: 20px; }
.sw-features li { font-size: 12px; color: var(--mid); padding: 5px 0 5px 14px; position: relative; border-top: 1px solid var(--border); }
.sw-features li:first-child { border-top: none; padding-top: 0; }
.sw-features li::before { content: '›'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.sw-link { font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 4px; transition: gap .15s; }
.sw-card:hover .sw-link { gap: 8px; }

/* ── NEWS ── */


.news-section { background: var(--light); }
.news-inner { max-width: var(--max); margin: 0 auto; padding: 72px 40px; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; margin-top: 36px; }
.news-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  cursor: pointer; transition: border-color .18s, transform .18s;
  text-decoration: none; display: block;
}
.news-card:hover { border-color: var(--red); transform: translateY(-3px); }
.news-img { height: 180px; position: relative; overflow: hidden; background-size: contain; background-repeat: no-repeat; background-position: center;}
.news-card.featured .news-img { height: 220px; }
.news-card .tag { background: var(--mid); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 10px;  }
.news-body { padding: 22px; }
.news-date { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.news-body h3 { font-size: 15px; font-weight: 600; color: var(--dark); line-height: 1.35; margin-bottom: 8px; }
.news-body p { font-size: 13px; line-height: 1.6; color: var(--mid); }




.news-section p.intro { max-width: 800px; margin-top: 16px; font-size: 15px; color: var(--mid); line-height: 1.6; padding: 20px 0;}

.news-section.top { margin-top: 80px; }
.news-inner { max-width: var(--max); margin: 0 auto; padding: 72px 40px; }
.news-list { margin-top: 36px; border-top: 1px solid var(--border); }
.news-row {
  display: grid;
  grid-template-columns: 140px 1fr 120px;
  gap: 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s;
  align-items: stretch;
}
.news-row:hover { background: var(--white); }
.news-row:hover .news-row-title { color: var(--red); }
.news-row:hover .news-row-arrow { opacity: 1; transform: translateX(0); }
.news-row-date {
  padding: 24px 20px 24px 20px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border);
}
.news-row-date .date-month {
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--red);
  line-height: 1;
}
.news-row-date .date-year {
  font-size: 12px; color: var(--mid); margin-top: 2px;
}
.news-row-body {
  padding: 24px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.news-row-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 6px; opacity: .85;
}
.news-row-title {
  font-size: 17px; font-weight: 600; color: var(--dark);
  line-height: 1.4; margin-bottom: 6px;
  transition: color .15s;
}
.news-row-desc {
  font-size: 15px; color: var(--mid); line-height: 1.55;
}
.news-row-action {
  padding: 24px 0 24px 20px;
  display: flex; align-items: center; justify-content: flex-end;
  border-left: 1px solid var(--border);
}
.news-row-arrow {
  font-size: 13px; font-weight: 600; color: var(--red);
  opacity: 0; transform: translateX(-6px);
  transition: all .2s;
  white-space: nowrap;
}

/* ── DOWNLOAD ── */

.download-section {  }
.download-inner { max-width: var(--max); margin: 0 auto; padding: 72px 40px; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 16px;
  margin-top: 36px;
}

/* ogni box è una mini-grid immagine | testo */
.download-item {
  min-height: 200px;
  border-radius: 4px;
  overflow: hidden;
}

.download-row-image {
  width: 100%;
  height: 100%;
  height: 300px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.download-row-body {

}

.download-row-title {
  font-size: 16px;
  font-weight: 600;
  background-color: var(--red-dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 6px;
  transition: color .15s;
}

.download-row-desc {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.55;
}

.download-item--locked { cursor: pointer; }

.download-row-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  background: var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

/* responsive news */
@media (max-width: 768px) {
  .news-row { grid-template-columns: 90px 1fr; }
  .news-row-action { display: none; }
  .news-row-body { padding: 18px 20px; }
  .news-row-date { padding: 18px 16px 18px 0; }
}
@media (max-width: 480px) {
  .news-row { grid-template-columns: 1fr; }
  .news-row-date { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 20px 10px; flex-direction: row; gap: 6px; align-items: center; }
  .news-row-body { padding: 10px 20px 18px; }
}


/* ── CERCA OVERLAY ────────────────────────────────────── */
#cerca-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: clamp(60px, 10vh, 120px);
}
#cerca-overlay.open { display: flex; }

#cerca-popup {
  background: #fff;
  border-radius: 8px;
  width: 100%; max-width: 640px;
  margin: 0 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: cercaIn .18s ease;
}
@keyframes cercaIn {
  from { opacity: 0; transform: translateY(-12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* form */
.cerca-popup-head {
  border-bottom: 1px solid #e0dbd5;
  padding: 0;
}
.cerca-popup-form {
  display: flex; align-items: center; gap: 0;
  padding: 0 16px;
}
.cerca-icon-search {
  width: 20px; height: 20px; flex-shrink: 0;
  color: #aaa;
}
#cerca-input {
  flex: 1; height: 56px;
  border: none; outline: none;
  font-family: 'Barlow', sans-serif;
  font-size: 17px; font-weight: 400;
  color: #1a1a1a; background: transparent;
  padding: 0 14px;
}
#cerca-input::placeholder { color: #bbb; }
.cerca-close-btn {
  width: 32px; height: 32px; flex-shrink: 0;
  background: #f4f2ef; border: none; border-radius: 4px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #666; transition: all .15s;
}
.cerca-close-btn:hover { background: #e8e4de; color: #1a1a1a; }
.cerca-close-btn svg { width: 16px; height: 16px; }

/* body */
#cerca-body { max-height: 420px; overflow-y: auto; }

.cerca-state {
  padding: 32px 20px; text-align: center;
  color: #888; font-size: 14px;
}
.cerca-tip { font-size: 12px; color: #aaa; margin-top: 6px; }

.cerca-spinner {
  width: 24px; height: 24px; margin: 0 auto;
  border: 2px solid #e0dbd5;
  border-top-color: #c0202a;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* lista risultati */
#cerca-results {
  list-style: none; margin: 0; padding: 8px 0;
}
#cerca-results li a {
  display: block; padding: 12px 20px;
  text-decoration: none; transition: background .12s;
  border-radius: 0;
}
#cerca-results li a:hover,
#cerca-results li.active a { background: #fdf9f9; }
#cerca-results li.active a .cerca-res-title { color: #c0202a; }

.cerca-res-cat {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: #c0202a;
  margin-bottom: 3px; opacity: .8;
}
.cerca-res-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
  color: #1a1a1a; margin-bottom: 4px;
  transition: color .12s;
}
.cerca-res-abstract {
  font-size: 12px; line-height: 1.55; color: #777;
}
.cerca-res-abstract mark,
.cerca-res-title mark {
  background: rgba(192,32,42,0.12);
  color: #c0202a; border-radius: 2px;
  padding: 0 2px; font-style: normal;
}
#cerca-results li + li { border-top: 1px solid #f0ede8; }

/* footer */
.cerca-popup-foot {
  border-top: 1px solid #e0dbd5;
  padding: 8px 16px;
  display: flex; gap: 16px;
  font-size: 11px; color: #aaa;
}
.cerca-popup-foot span::before {
  display: inline-block; margin-right: 4px;
  background: #f0ede8; border-radius: 3px;
  padding: 1px 5px; font-size: 11px; color: #666;
}

@media (max-width: 480px) {
  #cerca-overlay { padding-top: 0; align-items: flex-end; }
  #cerca-popup { border-radius: 12px 12px 0 0; margin: 0; max-width: 100%; }
  #cerca-body { max-height: 55vh; }
  .cerca-popup-foot { display: none; }
}

/* ── LOGIN OVERLAY ────────────────────────────────────── */
#login-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
#login-overlay.open { display: flex; }

#login-popup {
  background: #fff;
  border-radius: 8px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: authIn .18s ease;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(-12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-head {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 24px 0;
  position: relative;
}
.auth-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 700;
  text-transform: uppercase; color: #1a1a1a;
  margin: 0; flex: 1;
}
.auth-close, .auth-back {
  width: 32px; height: 32px; flex-shrink: 0;
  background: #f4f2ef; border: none; border-radius: 4px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #666; transition: all .15s;
}
.auth-close:hover, .auth-back:hover { background: #e8e4de; color: #1a1a1a; }
.auth-close svg, .auth-back svg { width: 16px; height: 16px; }

.auth-view { padding: 20px 24px 24px; }
.auth-desc { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 20px; }

/* campi */
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: #1a1a1a;
  margin-bottom: 6px;
}
.auth-hint { font-size: 11px; color: #aaa; font-weight: 400; }
.auth-field input[type="email"],
.auth-field input[type="text"],
.auth-field input[type="password"] {
  width: 100%; height: 42px;
  border: 1px solid #e0dbd5; border-radius: 4px;
  padding: 0 14px; font-size: 14px;
  font-family: inherit; outline: none;
  transition: border-color .15s; color: #1a1a1a;
}
.auth-field input:focus { border-color: #c0202a; }
.auth-field input.error { border-color: #c0202a; background: #fff5f5; }

.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* password toggle */
.auth-pw-wrap { position: relative; }
.auth-pw-wrap input { padding-right: 42px; }
.auth-pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #aaa;
  display: flex; align-items: center; transition: color .15s; padding: 0;
}
.auth-pw-toggle:hover { color: #555; }
.auth-pw-toggle svg { width: 16px; height: 16px; }

/* checkbox privacy */
.auth-checkbox {
  display: flex !important; align-items: flex-start; gap: 8px;
  font-size: 13px !important; font-weight: 400 !important;
  color: #555 !important; cursor: pointer;
  justify-content: flex-start !important;
}
.auth-checkbox input { margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.auth-checkbox a { color: #c0202a; }

/* pulsante submit */
.auth-btn {
  width: 100%; height: 44px; margin-top: 4px;
  background: #c0202a; color: #fff;
  border: none; border-radius: 4px;
  font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: background .15s;
}
.auth-btn:hover { background: #96181f; }
.auth-btn:disabled { background: #ccc; cursor: not-allowed; }

/* errore / successo */
.auth-error {
  font-size: 13px; color: #c0202a;
  background: rgba(192,32,42,0.07);
  border-radius: 4px; padding: 0;
  margin-bottom: 0; max-height: 0; overflow: hidden;
  transition: all .2s;
}
.auth-error.visible {
  padding: 10px 12px; margin-bottom: 12px;
  max-height: 100px;
}
.auth-success {
  font-size: 13px; color: #1a7a3c;
  background: rgba(26,122,60,0.08);
  border-radius: 4px; padding: 10px 12px;
  margin-bottom: 12px;
}

/* link */
.auth-switch {
  text-align: center; font-size: 13px; color: #888;
  margin-top: 16px; margin-bottom: 0;
}
.auth-switch a { color: #c0202a; text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.auth-link-small {
  font-size: 12px; color: #aaa; text-decoration: none;
  font-weight: 400;
}
.auth-link-small:hover { color: #c0202a; }

@media (max-width: 480px) {
  #login-popup { border-radius: 12px 12px 0 0; }
  #login-overlay { align-items: flex-end; padding: 0; }
  .auth-row { grid-template-columns: 1fr; }
}


/* ── CHIUSURA ── */
.close-section { background: var(--light); border-top: 1px solid var(--border); }
.close-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 72px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.close-text h2 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(26px, 3vw, 40px); font-weight: 700; color: var(--dark); text-transform: uppercase; line-height: 1.1; margin-bottom: 8px; }
.close-text p { font-size: 15px; color: var(--mid); }
.close-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-red { background: var(--red); color: #fff; padding: 13px 30px; font-size: 13px; font-weight: 600; text-decoration: none; border-radius: 4px; white-space: nowrap; transition: background .15s; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border: 1px solid var(--border); color: var(--mid); padding: 13px 30px; font-size: 13px; font-weight: 500; text-decoration: none; border-radius: 4px; white-space: nowrap; transition: all .15s; background: var(--white); }
.btn-outline:hover { border-color: var(--dark); color: var(--dark); }

/* ── FOOTER ── */
footer { background: var(--white); border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 56px 40px 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.f-brand { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: 1px; }
.f-sub { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 14px; font-weight: 600; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: var(--mid); max-width: 240px; }
.footer-col h5 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--dark); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }

.footer-col  ul li span { color: var(--red); }
.footer-col ul li a { font-size: 13px; color: var(--mid); text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom span { font-size: 12px; color: #aaa; }
.seo-links { display: flex; gap: 20px; flex-wrap: wrap; }
.seo-links a { font-size: 11px; color: #bbb; text-decoration: none; }
.seo-links a:hover { color: var(--red); }

/* ── RESPONSIVE ── */

/* Tablet largo: 1024px */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 24px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 8px; font-size: 12px; }
  .nav-dl { display: none; }

  .hero img { max-height: 420px; }

  .software-inner,
  .close-inner,
  .footer-inner { padding-left: 24px; padding-right: 24px; }

  .sw-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Tablet stretto: 768px */
@media (max-width: 768px) {
  /* nav: nascondo i link, mostro hamburger */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero img { max-height: 320px; object-position: 25% center; }

  .software-inner,
  .news-inner,
  .close-inner,
  .footer-inner { padding-left: 20px; padding-right: 20px; }

  .software-inner { padding-top: 48px; padding-bottom: 48px; }

  .sw-grid { grid-template-columns: 1fr 1fr; }


  .close-inner { flex-direction: column; gap: 28px; padding-top: 48px; padding-bottom: 48px; }
  .close-text h2 { font-size: 28px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-inner { padding-top: 40px; padding-bottom: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .seo-links { gap: 12px; }
}

/* Mobile: 480px */
@media (max-width: 480px) {
  .nav-logo .tagline { display: none; }

  .hero img { max-height: 240px; object-position: 20% center; }

  .sw-grid { grid-template-columns: 1fr; }
  .sw-card { padding: 24px 20px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }


  .close-actions { flex-direction: column; width: 100%; }
  .btn-red, .btn-outline { text-align: center; justify-content: center; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .seo-links { display: none; }
}

/* ── HAMBURGER MENU ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: all .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* menu mobile overlay */
.mobile-menu {
  display: none;
  position: fixed; top: 62px; left: 0; right: 0; z-index: 99;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li a {
  display: block; padding: 12px 0;
  font-size: 15px; font-weight: 500; color: var(--dark);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu ul li a:hover { color: var(--red); }
.mobile-menu .mobile-cta {
  display: block; margin-top: 16px;
  background: var(--red); color: #fff;
  padding: 13px 20px; text-align: center;
  font-size: 14px; font-weight: 600; text-decoration: none;
  border-radius: 4px;
}