/* ==========================================================================
   AGMAINT — CORPORATE DESIGN SYSTEM (2026)
   Clean, Authoritative, Mobile-First, Zero-Backend
   Palette: Deep Charcoal (#0f1012), Dark Slate (#17191d), AgMaint Red (#e93027)
   Typography: Bebas Neue (Display & Nav) + Roboto (Body)
   ========================================================================== */

:root {
  --bg-dark: #0f1012;
  --bg-section: #16181c;
  --bg-card: #1d2026;
  --bg-card-hover: #23272f;
  --brand-red: #e93027;
  --brand-red-dark: #c8231b;
  --text-white: #ffffff;
  --text-light: #e2e5ec;
  --text-Gray: #a6adb9;
  --text-muted: #777f8d;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-card: rgba(255, 255, 255, 0.12);
  --font-heading: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-width: 1220px;
  --radius: 4px;
  --transition: 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-white);
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--text-light);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  padding-bottom: 64px;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

ul, ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ==========================================================================
   TYPOGRAPHY & SECTION HEADERS (CLEAN EDITORIAL STYLE)
   ========================================================================== */
.accent-line {
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--brand-red);
  margin-bottom: 1rem;
}

h1, .h1-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-white);
}

h2, .h2-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-white);
}

h3, .h3-title {
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-white);
}

.text-red {
  color: var(--brand-red);
}

.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--text-Gray);
  line-height: 1.75;
  max-width: 720px;
}

/* ==========================================================================
   HEADER & NAVIGATION (CLEAN, UNCLUTTERED, LIKE ORIGINAL AGMAINT)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 16, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 52px;
  width: auto;
}

@media (min-width: 768px) {
  .brand-logo img {
    height: 58px;
  }
}

.main-nav {
  display: none;
}

@media (min-width: 992px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-white);
  padding: 0.35rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-red);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-red);
}

.nav-cta {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background-color: var(--brand-red);
  color: var(--text-white);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  transition: background-color var(--transition);
}

.nav-cta:hover {
  background-color: var(--brand-red-dark);
  color: var(--text-white);
}

/* Hamburger Button (Mobile) */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  cursor: pointer;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-white);
  transition: transform var(--transition), opacity var(--transition);
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Menu Drawer */
.mobile-drawer {
  display: none;
  background-color: var(--bg-section);
  border-bottom: 2px solid var(--brand-red);
  padding: 1.25rem 1.5rem 1.75rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer__list {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.mobile-drawer__link {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-white);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer__link:hover,
.mobile-drawer__link.is-active {
  color: var(--brand-red);
}

.mobile-drawer__cta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background-color: var(--brand-red);
  color: var(--text-white);
  border-color: var(--brand-red);
}

.btn--primary:hover {
  background-color: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  background:
    linear-gradient(135deg, rgba(15, 16, 18, 0.96) 0%, rgba(22, 24, 28, 0.88) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 992px) {
  .hero {
    padding: 6rem 0 6.5rem;
  }
}

.hero__content {
  max-width: 840px;
}

.hero__title {
  margin-bottom: 1.35rem;
}

.hero__lead {
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .hero__pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.hero-pillar {
  border-left: 3px solid var(--brand-red);
  padding-left: 1.15rem;
}

.hero-pillar h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.hero-pillar p {
  font-size: 0.92rem;
  color: var(--text-Gray);
}

/* ==========================================================================
   SECTIONS & SERVICE CARDS
   ========================================================================== */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 992px) {
  .section {
    padding: 6rem 0;
  }
}

.section--alt {
  background-color: var(--bg-section);
}

.section-header {
  margin-bottom: 3rem;
  max-width: 820px;
}

.section-header h2 {
  margin-bottom: 0.85rem;
}

.intro-box {
  background-color: var(--bg-card);
  border-left: 4px solid var(--brand-red);
  padding: 1.6rem 1.85rem;
  margin-bottom: 2.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.intro-box p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
}

.intro-box p + p {
  margin-top: 0.75rem;
  color: var(--text-Gray);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-top: 3px solid transparent;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  border-top-color: var(--brand-red);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-Gray);
  line-height: 1.68;
}

.service-card__link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-red);
}

.service-card__link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CYBERSECURITY LAYOUT & CHECKLIST
   ========================================================================== */
.cyber-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .cyber-grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
  }
}

.cyber-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cyber-card {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--brand-red);
  padding: 1.65rem 1.75rem;
  border-radius: var(--radius);
}

.cyber-card h3 {
  margin-bottom: 0.5rem;
}

.cyber-card p {
  font-size: 0.95rem;
  color: var(--text-Gray);
}

.audit-panel {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-card);
  border-top: 4px solid var(--brand-red);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
}

.audit-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  letter-spacing: 1px;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.audit-panel__desc {
  font-size: 0.92rem;
  color: var(--text-Gray);
  margin-bottom: 1.35rem;
}

.audit-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.audit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  background-color: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
}

.audit-item input[type="checkbox"] {
  accent-color: var(--brand-red);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.audit-result {
  background-color: var(--bg-section);
  border: 1px solid var(--border-card);
  padding: 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 1.35rem;
}

.audit-result__top {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.audit-bar {
  width: 100%;
  height: 8px;
  background-color: var(--bg-dark);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.audit-bar__fill {
  height: 100%;
  width: 20%;
  background-color: var(--brand-red);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.audit-feedback {
  font-size: 0.88rem;
  color: var(--text-Gray);
}

/* ==========================================================================
   SPLIT BANNERS (ASSISTENZA REMOTA & SHOP)
   ========================================================================== */
.split-banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .split-banners {
    grid-template-columns: 1fr 1fr;
  }
}

.banner-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.banner-box--highlight {
  border-left: 4px solid var(--brand-red);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 900px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
}

.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-white);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand-red);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__body {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-Gray);
  font-size: 0.96rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* ==========================================================================
   CONTACTS & FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-info-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
}

.contact-info-item strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-red);
  margin-bottom: 0.25rem;
}

.contact-info-item span,
.contact-info-item a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
}

.contact-form-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.96rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-red);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-Gray);
  margin-bottom: 1.35rem;
}

.form-check input {
  margin-top: 4px;
  accent-color: var(--brand-red);
}

.form-check a {
  color: var(--text-white);
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #0a0b0d;
  border-top: 2px solid var(--brand-red);
  padding: 4rem 0 2.5rem;
  color: var(--text-Gray);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 1px;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: var(--brand-red);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MOBILE BOTTOM QUICK BAR
   ========================================================================== */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: #0a0b0d;
  border-top: 1px solid var(--border-card);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.45rem;
  gap: 0.45rem;
}

@media (min-width: 992px) {
  .mobile-bar {
    display: none;
  }
}

.mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius);
  background-color: var(--bg-card);
  color: var(--text-white);
  text-align: center;
}

.mobile-bar__btn--red {
  background-color: var(--brand-red);
}

/* ==========================================================================
   INTERNAL PAGE & LEGAL CONTENT
   ========================================================================== */
.page-header {
  padding: 3.5rem 0 3rem;
  background-color: var(--bg-section);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content {
  max-width: 840px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin: 2.25rem 0 0.75rem;
  color: var(--text-white);
  border-left: 3px solid var(--brand-red);
  padding-left: 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-Gray);
  margin-bottom: 0.85rem;
  font-size: 0.96rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* Cookie Notice Banner */
.cookie-banner {
  position: fixed;
  bottom: 74px;
  right: 16px;
  left: 16px;
  max-width: 440px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--brand-red);
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
  z-index: 990;
  display: none;
  font-size: 0.86rem;
}

@media (min-width: 992px) {
  .cookie-banner {
    bottom: 20px;
    left: auto;
  }
}

.cookie-banner.is-visible {
  display: block;
}
