/* ========================================
   AUTODOP - Global Stylesheet
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --autodop-red: #DB0016;
  --autodop-red-dark: #A8000F;
  --autodop-black: #111111;
  --autodop-white: #FFFFFF;
  --autodop-gray-light: #F5F5F5;
  --autodop-gray-medium: #767676;
  --autodop-gray-border: #E0E0E0;
  --autodop-gray-text: #555555;
  --autodop-gray-dark: #666666;
  --autodop-dark-bg: #0A0A0A;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --content-max: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--autodop-black);
  background: var(--autodop-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul { list-style: none; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.tag {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--autodop-red);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--autodop-black);
  letter-spacing: -0.5px;
}

.section-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--autodop-gray-text);
  line-height: 1.7;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--autodop-red);
  color: var(--autodop-white);
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 0;
}
.btn-primary:hover { background: var(--autodop-red-dark); }

.btn-secondary {
  background: var(--autodop-black);
  color: var(--autodop-white);
  padding: 14px 28px;
  font-size: 16px;
}
.btn-secondary:hover { background: #222; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--autodop-white);
  color: var(--autodop-white);
  padding: 14px 32px;
  font-size: 16px;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--autodop-black);
  color: var(--autodop-black);
  padding: 14px 28px;
  font-size: 16px;
}

.btn-white {
  background: var(--autodop-white);
  color: var(--autodop-red);
  padding: 14px 32px;
  font-size: 16px;
}
.btn-white:hover { background: #f0f0f0; }

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

.btn-rounded { border-radius: 6px; }

/* ========================================
   HEADER
   ======================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  padding: 0 60px;
  background: var(--autodop-white);
  border-bottom: 1px solid var(--autodop-gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo-img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--autodop-black);
}
.header__nav a:hover,
.header__nav a.active { color: var(--autodop-red); }

/* Dropdown menu */
.header__nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.header__nav-item > a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--autodop-black);
}
.header__nav-item > a:hover,
.header__nav-item > a.active { color: var(--autodop-red); }
.header__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  background: var(--autodop-white);
  border: 1px solid var(--autodop-gray-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 220px;
  padding: 8px 0;
  z-index: 100;
}
.header__nav-item:hover .header__dropdown { display: block; }
.header__dropdown a {
  display: block;
  padding: 8px 16px;
  color: var(--autodop-black);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
.header__dropdown a:hover {
  background: var(--autodop-gray-light);
  color: var(--autodop-red);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__lang {
  font-size: 13px;
  color: var(--autodop-gray-medium);
  cursor: pointer;
}

.header__cta {
  background: var(--autodop-red);
  color: var(--autodop-white);
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
}
.header__cta:hover { background: var(--autodop-red-dark); }

/* Mobile menu toggle */
.header__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.header__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--autodop-black);
  transition: all 0.3s ease;
}

/* ========================================
   PAGE BANNER
   ======================================== */
.page-banner {
  background: var(--autodop-black);
  padding: 80px max(40px, calc((100% - var(--content-max)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  gap: 16px;
}

.page-banner .tag { color: var(--autodop-red); }

.page-banner__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--autodop-white);
}

.page-banner__desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: #999;
  max-width: 600px;
}

/* ========================================
   HERO SLIDER (Homepage)
   ======================================== */
.hero-slider {
  position: relative;
  height: 680px;
  overflow: hidden;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero-slider__slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #111111DD 0%, #11111166 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  height: 100%;
  padding: 0 120px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  background: var(--autodop-red);
  padding: 6px 16px;
  width: fit-content;
}
.hero__tag span {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--autodop-white);
  letter-spacing: 2px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--autodop-white);
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 800px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 650px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hero Slider Controls */
.hero-slider__controls {
  position: absolute;
  bottom: 32px;
  left: 120px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-slider__arrow {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--autodop-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hero-slider__arrow:hover { background: rgba(255,255,255,0.25); }

.hero-slider__dots {
  display: flex;
  gap: 8px;
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-slider__dot.active {
  background: var(--autodop-white);
  border-color: var(--autodop-white);
}

/* ========================================
   PRODUCT SLIDER (Homepage)
   ======================================== */
.product-slider {
  position: relative;
}

.product-slider__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}
.product-slider__track::-webkit-scrollbar { display: none; }

.product-slider__track .product-card {
  width: calc((100% - 48px) / 3);
  min-width: 280px;
  flex-shrink: 0;
}

.product-slider__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.product-slider__arrow {
  width: 44px;
  height: 44px;
  background: var(--autodop-white);
  border: 1px solid var(--autodop-gray-border);
  color: var(--autodop-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.product-slider__arrow:hover {
  border-color: var(--autodop-red);
  color: var(--autodop-red);
}

/* ========================================
   REFERENZE SLIDER (Homepage)
   ======================================== */
.ref-slider {
  position: relative;
}

.ref-slider__slide {
  display: none;
}
.ref-slider__slide.active {
  display: block;
}

.ref-slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.ref-slider__arrow {
  width: 40px;
  height: 40px;
  background: var(--autodop-white);
  border: 1px solid var(--autodop-gray-border);
  color: var(--autodop-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ref-slider__arrow:hover {
  border-color: var(--autodop-red);
  color: var(--autodop-red);
}

.ref-slider__dots {
  display: flex;
  gap: 8px;
}

.ref-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--autodop-gray-border);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.ref-slider__dot.active {
  background: var(--autodop-red);
  border-color: var(--autodop-red);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 80px max(40px, calc((100% - var(--content-max)) / 2));
}

.section--gray { background: var(--autodop-gray-light); }
.section--dark { background: var(--autodop-black); }
.section--red { background: var(--autodop-red); }

.section__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.section__header--center { align-items: center; text-align: center; }
.section__header--row { flex-direction: row; justify-content: space-between; align-items: flex-end; }
@media (max-width: 640px) {
  .section__header--row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ========================================
   CARDS
   ======================================== */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--autodop-white);
  border: 1px solid var(--autodop-gray-border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card__icon {
  width: 48px;
  height: 48px;
  background: rgba(219, 0, 22, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--autodop-red);
  font-size: 20px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--autodop-black);
}

.card__desc {
  font-size: 14px;
  color: var(--autodop-gray-dark);
  line-height: 1.6;
}

.card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--autodop-red);
}
.card__link:hover { color: var(--autodop-red-dark); }

/* Product Card */
.product-card {
  border: 1px solid var(--autodop-gray-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__image {
  width: 100%;
  height: 220px;
  background: var(--autodop-gray-light);
  overflow: hidden;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* News Card */
.news-card {
  border: 1px solid var(--autodop-gray-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--autodop-white);
}

.news-card__image {
  width: 100%;
  height: 200px;
  background: var(--autodop-gray-light);
  overflow: hidden;
}
.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card__category {
  font-size: 12px;
  font-weight: 600;
  color: var(--autodop-red);
  letter-spacing: 1px;
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--autodop-black);
  line-height: 1.3;
}

.news-card__meta {
  font-size: 13px;
  color: #999;
}

/* ========================================
   SPLIT SECTION (text + image)
   ======================================== */
.split {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px max(40px, calc((100% - var(--content-max)) / 2));
}

.split--reverse { flex-direction: row-reverse; }

.split__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.split__image {
  flex: 1;
  height: 380px;
  overflow: hidden;
  border-radius: 0;
}
.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   NUMBERS / STATS
   ======================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:last-child { border-right: none; }

.stat__value {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--autodop-white);
}

.stat__label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* ========================================
   REFERENZE / TESTIMONIALS
   ======================================== */
.testimonial-item {
  display: flex;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--autodop-gray-border);
}
.testimonial-item:last-child { border-bottom: none; padding-bottom: 0; }

.testimonial-item__content { flex: 1; display: flex; flex-direction: column; gap: 20px; }

.testimonial-item__quote {
  font-family: var(--font-body);
  font-size: 18px;
  font-style: italic;
  color: #333;
  line-height: 1.7;
}

.testimonial-item__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-item__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--autodop-red);
}

.testimonial-item__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.testimonial-item__role {
  font-size: 14px;
  color: #999;
}

.testimonial-item__media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 400px;
  flex-shrink: 0;
}

.testimonial-item__gallery {
  display: flex;
  gap: 8px;
  overflow: hidden;
}
.testimonial-item__gallery img {
  flex: 1;
  min-width: 0;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

.testimonial-item__video {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--autodop-gray-light);
  cursor: pointer;
  transition: background 0.2s ease;
}
.testimonial-item__video:hover { background: #EBEBEB; }

.testimonial-item__video-play {
  width: 36px;
  height: 36px;
  background: var(--autodop-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-item__video span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--autodop-black);
}

/* ========================================
   IL GRUPPO
   ======================================== */
.gruppo-flow {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.gruppo-step {
  flex: 1;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.gruppo-step--active {
  background: rgba(219, 0, 22, 0.12);
  border-color: rgba(219, 0, 22, 0.3);
}

.gruppo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  color: rgba(255,255,255,0.3);
  font-size: 24px;
}

/* ========================================
   FORMS
   ======================================== */
.form-row {
  display: flex;
  gap: 24px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--fixed { flex: 0 0 160px; }

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #D0D0D0;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--autodop-black);
  background: var(--autodop-white);
  transition: border-color 0.2s ease;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--autodop-red);
}

.form-textarea {
  height: 140px;
  padding: 14px 16px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #BBB;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--autodop-red);
}
.form-checkbox label {
  font-size: 13px;
  color: var(--autodop-gray-dark);
}

.form-card {
  background: var(--autodop-white);
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========================================
   JOB CARDS
   ======================================== */
.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: var(--autodop-gray-light);
  border-radius: 8px;
}

.job-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.job-card__meta {
  font-size: 14px;
  color: #999;
  margin-top: 6px;
}

/* ========================================
   CONTACT DEPARTMENT CARDS
   ======================================== */
.dept-card {
  padding: 16px 20px;
  background: var(--autodop-gray-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dept-card__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.dept-card__info {
  font-size: 13px;
  color: var(--autodop-gray-dark);
}

/* ========================================
   PRODUCT DETAIL
   ======================================== */
.product-gallery {
  display: flex;
  gap: 16px;
  padding: 60px max(40px, calc((100% - var(--content-max)) / 2));
}

.product-gallery__main {
  flex: 1;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 140px;
}

.product-gallery__thumb {
  width: 100%;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}
.product-gallery__thumb--active { border-color: var(--autodop-red); }
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: flex;
  gap: 60px;
  padding: 60px max(40px, calc((100% - var(--content-max)) / 2));
}

.product-info__desc { flex: 1; display: flex; flex-direction: column; gap: 24px; }

.product-info__quick {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #EEE;
}
.info-row:last-child { border-bottom: none; }
.info-row__label { font-size: 14px; color: #999; }
.info-row__value { font-size: 14px; font-weight: 600; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.spec-card {
  background: var(--autodop-white);
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-card__value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--autodop-red);
}

.spec-card__label {
  font-size: 14px;
  color: var(--autodop-gray-dark);
  line-height: 1.4;
}

/* ========================================
   NEWS DETAIL
   ======================================== */
.article-hero {
  width: 100%;
  height: 480px;
  overflow: hidden;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-wrapper {
  display: flex;
  gap: 60px;
  padding: 60px max(40px, calc((100% - var(--content-max)) / 2));
}

.article-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-meta__badge {
  background: var(--autodop-red);
  color: var(--autodop-white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.article-meta__date,
.article-meta__read {
  font-size: 14px;
  color: #999;
}

.article-main h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.article-main h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
}

.article-main p {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
}

.article-main .lead {
  font-size: 18px;
  line-height: 1.8;
}

.article-inline-img {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.article-inline-img img {
  width: 100%;
  height: auto;
}

.article-sidebar {
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-section__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--autodop-white);
  font-weight: 700;
  font-size: 16px;
}
.share-btn--linkedin { background: #0A66C2; }
.share-btn--twitter { background: var(--autodop-black); }
.share-btn--email { background: #666; }

.related-card {
  padding: 16px;
  background: var(--autodop-gray-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-card__category {
  font-size: 11px;
  font-weight: 600;
  color: var(--autodop-red);
  letter-spacing: 1px;
}

.related-card__title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.related-card__date {
  font-size: 12px;
  color: #999;
}

/* ========================================
   SEDE / CONTACT INFO BAR
   ======================================== */
.sede-section {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px max(40px, calc((100% - var(--content-max)) / 2));
  background: var(--autodop-black);
}

.sede-info { flex: 1; display: flex; flex-direction: column; gap: 16px; }

.sede-info__name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--autodop-white);
}

.sede-info__text {
  font-size: 16px;
  color: #CCC;
  line-height: 1.6;
}

.orari { width: 360px; display: flex; flex-direction: column; gap: 16px; }

.orari__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--autodop-white);
}

.orari__row {
  display: flex;
  justify-content: space-between;
}
.orari__row span:first-child { color: #CCC; font-size: 15px; }
.orari__row span:last-child { color: var(--autodop-white); font-size: 15px; font-weight: 600; }
.orari__row--closed span:last-child { color: var(--autodop-red); }

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--autodop-red);
  padding: 80px max(40px, calc((100% - var(--content-max)) / 2));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--autodop-white);
  letter-spacing: -0.5px;
}

.cta-section__desc {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
}

.cta-section__buttons {
  display: flex;
  gap: 16px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--autodop-dark-bg);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer__main {
  display: flex;
  gap: 60px;
  padding: 60px 120px 0;
}

.footer__brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__brand-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--autodop-white);
}

.footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.footer__col a:hover { color: var(--autodop-white); }

.footer__col-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.footer__col-contact svg { color: var(--autodop-red); width: 14px; height: 14px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 120px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.footer__legal a:hover { color: rgba(255,255,255,0.6); }

/* ========================================
   MAP PLACEHOLDER
   ======================================== */
.map-placeholder {
  width: 100%;
  height: 450px;
  background: #E8E8E8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #999;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .header { padding: 0 30px; }
  .header__nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--autodop-white);
    z-index: 999;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 100px 40px 60px;
    gap: 8px;
    overflow-y: auto;
  }
  .header__nav--open { display: flex; }
  .header__nav > a,
  .header__nav > .header__nav-item > a:first-child {
    font-size: 22px;
    font-weight: 600;
    font-family: var(--font-heading);
    padding: 8px 0;
    text-align: right;
  }
  .header__mobile-toggle { display: flex; z-index: 1000; }

  .header__nav .header__lang-mobile {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    font-size: 15px;
    font-family: var(--font-heading);
    font-weight: 600;
  }
  .header__nav .header__lang-mobile a {
    color: var(--autodop-gray-medium);
    text-decoration: none;
  }
  .header__nav .header__lang-mobile a.active {
    color: var(--autodop-red);
  }

  /* Mobile dropdown: show sub-items inline */
  .header__nav-item { display: block; text-align: right; }
  .header__dropdown {
    display: block;
    position: static;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    padding: 0;
  }
  .header__dropdown a {
    padding: 4px 0;
    font-size: 15px;
    text-align: right;
    color: var(--autodop-gray-dark);
  }
  .header__dropdown a:hover {
    background: none;
  }

  .hero-slider { height: 600px; }
  .hero__content { padding: 100px 40px 80px; }
  .hero__title { font-size: 40px; max-width: 100%; }
  .hero__subtitle { font-size: 16px; }
  .hero-slider__controls { left: 40px; bottom: 24px; }
  .product-slider__track .product-card { width: calc((100% - 24px) / 2); min-width: 280px; }

  .section { padding: 60px 40px; }
  .page-banner { padding: 60px 40px; }
  .page-banner__title { font-size: 36px; }

  .split { flex-direction: column; padding: 60px 40px; }
  .split--reverse { flex-direction: column; }
  .split__image { height: 300px; width: 100%; }

  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .testimonial-item { flex-direction: column; }
  .testimonial-item__media { width: 100%; }
  .testimonial-item__gallery { width: 100%; }

  .gruppo-flow { flex-direction: column; }
  .gruppo-arrow { transform: rotate(90deg); width: 100%; }

  .form-row { flex-direction: column; }
  .form-group--fixed { flex: 1; }

  .product-gallery { flex-direction: column; padding: 40px; }
  .product-gallery__main { height: 300px; }
  .product-gallery__thumbs { flex-direction: row; width: 100%; }
  .product-gallery__thumb { height: 80px; flex: 1; }

  .product-info { flex-direction: column; padding: 40px; }
  .product-info__quick { width: 100%; }

  .spec-grid { grid-template-columns: repeat(2, 1fr); }

  .article-wrapper { flex-direction: column; padding: 40px; }
  .article-sidebar { width: 100%; }

  .sede-section { flex-direction: column; padding: 60px 40px; }
  .orari { width: 100%; }

  .cta-section { padding: 60px 40px; }
  .cta-section__title { font-size: 28px; }

  .footer__main { flex-direction: column; gap: 40px; padding: 40px; }
  .footer__bottom { flex-direction: column; gap: 16px; padding: 24px 40px; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; }

  .job-card { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Mobile */
@media (max-width: 640px) {
  .header { padding: 0 20px; height: 70px; }
  .header__logo-text { font-size: 18px; }
  .header__lang { display: none; }
  .header__nav > a,
  .header__nav > .header__nav-item > a:first-child { font-size: 20px; }

  .hero-slider { height: 75svh; }
  .hero__content { padding: 100px 20px 80px; justify-content: flex-start; }
  .hero__title { font-size: 28px; }
  .hero__subtitle { font-size: 15px; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; text-align: center; }
  .hero-slider__controls { left: 20px; right: 20px; bottom: 16px; justify-content: center; }
  .product-slider__track .product-card { width: 100%; min-width: 0; }
  .product-slider__track { scroll-snap-type: x mandatory; }
  .product-slider__track .product-card { scroll-snap-align: start; }

  .section { padding: 48px 20px; }
  .page-banner { padding: 48px 20px; min-height: 200px; }
  .page-banner__title { font-size: 28px; }
  .page-banner__desc { font-size: 16px; }

  .section-title { font-size: 28px; }

  .card-grid--4,
  .card-grid--3,
  .card-grid--2 { grid-template-columns: 1fr; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat__value { font-size: 36px; }

  .split { gap: 32px; padding: 48px 20px; }
  .split__image { height: 220px; }

  .cta-section { padding: 48px 20px; }
  .cta-section__title { font-size: 24px; }
  .cta-section__buttons { flex-direction: column; width: 100%; }
  .cta-section__buttons .btn { width: 100%; text-align: center; }

  .product-gallery { padding: 20px; }
  .product-info { padding: 20px; }
  .spec-grid { grid-template-columns: 1fr; }
  .article-wrapper { padding: 20px; }
  .sede-section { padding: 48px 20px; }

  .footer__main { padding: 32px 20px; }
  .footer__bottom { padding: 24px 20px; }

  .form-card { padding: 24px; }

  .testimonial-item__gallery img { height: 150px; }
}

/* ========================================
   PAGE-SPECIFIC STYLES (consolidated)
   ======================================== */

/* Chi Siamo - Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid__item {
  aspect-ratio: 4/3;
  background: var(--autodop-gray-light);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-grid__item:hover img { transform: scale(1.05); }
.gallery-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}
.gallery-grid__item:hover::after { background: rgba(0,0,0,0.1); }

/* Chi Siamo - Video Placeholder */
.video-placeholder {
  width: 100%;
  height: 480px;
  background: var(--autodop-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.video-placeholder__play {
  width: 80px;
  height: 80px;
  background: var(--autodop-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder__play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--autodop-white);
  margin-left: 4px;
}

/* Consulenza - Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--autodop-white);
}
.process-step__number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--autodop-red);
  line-height: 1;
}
.process-step__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--autodop-black);
}
.process-step__desc {
  font-size: 14px;
  color: var(--autodop-gray-dark);
  line-height: 1.7;
}

/* Prodotti - Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Software - Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Software - Screenshot Placeholder */
.screenshot-placeholder {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background: var(--autodop-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--autodop-gray-medium);
  border: 1px solid var(--autodop-gray-border);
}

/* Assistenza - Plan Cards */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.plan-card {
  border: 1px solid var(--autodop-gray-border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--autodop-white);
}
.plan-card--featured {
  border-color: var(--autodop-red);
  border-width: 2px;
  position: relative;
}
.plan-card__badge {
  position: absolute;
  top: -14px;
  left: 40px;
  background: var(--autodop-red);
  color: var(--autodop-white);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 16px;
}
.plan-card__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--autodop-black);
}
.plan-card__desc {
  font-size: 15px;
  color: var(--autodop-gray-dark);
  line-height: 1.6;
}
.plan-card__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan-card__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--autodop-black);
}
.plan-card__feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(219, 0, 22, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.plan-card__feature-icon svg {
  width: 14px;
  height: 14px;
  color: var(--autodop-red);
}

/* Referenze - Testimonials List */
.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ========================================
   PAGE-SPECIFIC RESPONSIVE (consolidated)
   ======================================== */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .video-placeholder { height: 280px; }
  .process-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-placeholder { min-height: 240px; }
}
