:root {
  --yellow: #f7bb17;
  --green: #007639;
  --red: #e1001a;
  --dark: #18211d;
  --light: #f7f5ef;
  --white: #ffffff;
  --gray: #6f766f;
  --border: rgba(24, 33, 29, 0.12);
  --shadow: 0 18px 45px rgba(24, 33, 29, 0.08);
  --radius: 22px;
  --max: 1200px;
}
.privacy-content p,
.privacy-content li {
  font-size: 15px;
  line-height: 1.6;
}
.privacy-content h2 {
  margin-top: 22px;
  font-size: 20px;
}

.privacy-content h3 {
  margin-top: 16px;
  font-size: 16px;
}

.hero-slide-content .btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.hero-slide-content .btn {
  margin-right: 10px;
}

.hero-slide-content .btn-secondary:hover {
  background: #fff;
  color: #000;
}

.hero-slider-section {
  position: relative;
  padding: 0;
  margin: 0;
}

section.hero-slider-section,
.hero.hero-slider-section,
.page-hero.hero-slider-section {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.2) 100%);
  display: flex;
  align-items: center;
}

.hero-slide-content {
  max-width: 1200px;
  color: #fff;
  padding: 40px 0;
}

.hero-slide-content .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #fff;
  opacity: 0.9;
}

.hero-slide-content h1 {
  color: #fff;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.1;
}

.hero-slide-content p {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 1000px;
  margin-bottom: 24px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.slider-dots .dot.active {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 991px) {
  .hero-slider {
    height: 68vh;
    min-height: 480px;
  }

  .hero-slide-content {
    max-width: 100%;
    padding: 30px 0 70px 0;
  }

  .slider-btn {
    width: 46px;
    height: 46px;
    font-size: 1.7rem;
	  display: none;
  }
}

@media (max-width: 767px) {
  .hero-slider {
    height: 72vh;
    min-height: 500px;
  }

  .hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.2) 100%);
    align-items: flex-end;
  }

  .hero-slide-content {
    padding: 24px 0 80px 0;
  }

  .hero-slide-content p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .slider-btn.prev {
    left: 12px;
  }

  .slider-btn.next {
    right: 12px;
  }

  .slider-dots {
    bottom: 18px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
iframe {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 32px), 900px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 245, 239, 0.9);
  border-bottom: 1px solid var(--border);
}

.logo {
  height: 46px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand small {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  font-size: 14px;
}

.menu a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.menu a:hover,
.menu a.active-link {
  background: var(--green);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 999px;
  transition: 0.25s ease;
}

.sostenibilita-hero-full {
  position: relative;
  width: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.45)),
    url("assets/sfondo3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sostenibilita-overlay {
  padding: 10px 0 10px;
}

.sostenibilita-intro {
  color: var(--dark);
  max-width: var(--max);
}

.sostenibilita-intro h1 {
  color: var(--dark);
}

.sostenibilita-intro p {
  color: var(--dark);
  max-width: var(--max);
  font-size: 18px;
}

.sostenibilita-cards {
  margin-top: 50px;
}

.sostenibilita-cards .card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
}

.settori-hero-full {
  position: relative;
  width: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.45)),
    url("assets/sfondo2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.settori-overlay {
  padding: 10px 0 10px;
}

.settori-intro {
  color: var(--dark);
  max-width: var(--max);
}

.settori-intro h1 {
  color: var(--dark);
}

.settori-cards {
  margin-top: 50px;
}

.settori-cards .sector {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
}

.chi-siamo-hero-full {
  position: relative;
  width: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.45)),
    url("assets/sfondo1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.chi-siamo-overlay {
  padding: 10px 0 10px;
}

.chi-siamo-intro {
  color: var(--dark);
  max-width: var(--max);
}

.chi-siamo-intro h1 {
  color: var(--dark);
}

.chi-siamo-intro p {
  color: var(--dark);
  max-width: var(--max);
  font-size: 18px;
}

.chi-siamo-cards {
  margin-top: 60px;
}

.chi-siamo-cards .card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
}

.content-with-image {
  padding: 60px 0 420px;
  background-image:
    linear-gradient(to bottom, rgba(247, 245, 239, 0) 0%, rgba(24, 33, 29, 0.20) 100%),
    url("assets/sfondo1.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.content-cards {
  position: relative;
  z-index: 2;
}

.hero,
.page-hero {
  padding: 44px 0 28px;
}

section {
  padding: 34px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(0, 118, 57, 0.03), rgba(0, 118, 57, 0));
}

.grid-2,
.grid-3,
.contact-grid,
.highlights,
.pdf-list {
  display: grid;
  gap: 22px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.highlights {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.pdf-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-copy,
.card,
.sector,
.pdf-card,
.contact-box,
.map-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-copy {
  padding: 52px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(247, 187, 23, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(0, 118, 57, 0.14), transparent 30%),
    var(--white);
}

.hero-copy-full {
  width: 100%;
}

.hero-fullwidth-video {
  padding-top: 0;
  padding-bottom: 20px;
}

.hero-video-full {
  width: 100%;
  min-height: 520px;
  background: #000;
  overflow: hidden;
}

.single-video-placeholder {
  min-height: 520px;
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(24, 33, 29, 0.45), rgba(24, 33, 29, 0.65)),
    linear-gradient(135deg, var(--green), var(--yellow), var(--red));
}

.hero-image-full {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.hero-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.section-image-break {
  width: 100%;
  height: 420px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
  background-image: url("assets/sfondo1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-image-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(24, 33, 29, 0.15),
    rgba(24, 33, 29, 0.35)
  );
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(247, 187, 23, 0.15);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(36px, 5vw, 55px);
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
}

.hero-copy p {
  max-width: var(--max);
  color: #33413a;
  font-size: 18px;
}

.page-hero p {
  max-width: var(--max);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.center-head {
  justify-content: center;
  text-align: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: #005a2b;
}

.btn-secondary {
  border-color: var(--border);
  background: var(--white);
}

.btn:hover {
  transform: translateY(-2px);
}

.card,
.sector,
.pdf-card,
.contact-box,
.map-box {
  padding: 28px;
}

.stat {
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.stat strong {
  display: block;
  font-size: 26px;
  margin-bottom: 6px;
  color: var(--green);
}

.stat span {
  display: block;
  font-size: 16px;
}

ul.clean {
  margin: 0;
  padding-left: 18px;
}

.sector {
  position: relative;
  overflow: hidden;
}

.sector-image {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
}

.sector-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sector-image-placeholder {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  background:
    linear-gradient(135deg, rgba(24, 33, 29, 0.35), rgba(24, 33, 29, 0.55)),
    linear-gradient(135deg, var(--green), var(--yellow));
}

.sector::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(247, 187, 23, 0.08);
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(225, 0, 26, 0.08);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  background: var(--white);
  border-radius: 0 16px 16px 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pdf-card a {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 700;
  color: var(--green);
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.map-box iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: 18px;
}

.bottom-contact {
  padding-top: 30px;
  padding-bottom: 30px;
}

.site-footer-full {
  width: 100%;
  background: var(--green);
  color: var(--white);
  padding: 46px 0 0;
}

.footer-full-grid {
  display: block;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: start;
}

.footer-logo-area {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  max-width: 220px;
  height: auto;
  display: block;
}

.footer-data-area h3,
.footer-documents-box h3,
.footer-links-area h3 {
  margin-bottom: 14px;
  color: var(--white);
}

.footer-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.footer-data-grid p {
  margin: 0;
}

.footer-data-grid a {
  color: var(--white);
}

.footer-mini-title {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

.footer-documents-box {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.footer-links-dark a {
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  color: var(--white);
  transition: 0.25s ease;
}

.footer-links-dark a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.footer-credit-bar {
  margin-top: 34px;
  background: var(--yellow);
  color: var(--green);
  padding: 14px 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.footer-credit-bar a {
  color: var(--green);
  text-decoration: underline;
}

.footer-credit-bar a:hover {
  color: var(--red);
}

.site-footer-full p,
.site-footer-full a,
.site-footer-full span,
.site-footer-full strong {
  color: inherit;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

.contact-left,
.contact-right {
  display: flex;
  flex-direction: column;
}

.contact-box {
  height: 100%;
}

.contact-info,
.contact-info-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
}

.contact-item p {
  margin: 0;
}

.contact-info a,
.contact-info-main a,
.contact-cta-details a {
  color: var(--green);
  font-weight: 600;
}

.contact-info a:hover,
.contact-info-main a:hover,
.contact-cta-details a:hover {
  text-decoration: underline;
}

.contact-info .btn {
  margin-top: 10px;
  width: fit-content;
}

.contact-cta-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 20px;
}

.contact-cta-details {
  display: grid;
  gap: 8px;
}

.contact-cta-details p {
  margin: 0;
}

.include-target:empty {
  display: block;
}

.privacy-content {
  padding: 34px;
}

.privacy-content h2 {
  margin-top: 22px;
}

.privacy-content h3 {
  margin-top: 18px;
  font-size: 20px;
}

.privacy-content p,
.privacy-content li {
  font-size: 16px;
}

@media (max-width: 1024px) {
  .grid-2,
  .grid-3,
  .contact-grid,
  .pdf-list,
  .highlights {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-data-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
  }

  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    background: rgba(247, 245, 239, 0.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 30;
    justify-content: flex-start;
  }

  .menu.menu-open {
    display: flex;
  }

  .menu a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section-head,
  .grid-2,
  .grid-3,
  .contact-grid,
  .pdf-list,
  .highlights {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-video-full,
  .single-video-placeholder {
    min-height: 320px;
  }

  .section-image-break {
    height: 280px;
    margin: 40px 0;
  }

  .chi-siamo-overlay,
  .settori-overlay,
  .sostenibilita-overlay {
    padding: 15px 0 20px;
  }

  .chi-siamo-cards,
  .settori-cards,
  .sostenibilita-cards {
    margin-top: 36px;
  }

  .footer-data-grid {
    grid-template-columns: 1fr;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    max-width: 180px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .privacy-content {
    padding: 22px;
  }
}
/* TIMELINE */
.history-section {
  position: relative;
  overflow: hidden;
}

.section-intro {
  max-width: 860px;
  margin: 12px auto 0;
  color: var(--gray);
  line-height: 1.6;
}

.timeline-premium {
  position: relative;
  max-width: 1240px;
  margin: 88px auto 0;
  padding: 6px 0 120px;
  overflow: visible;
}

.timeline-premium::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 28px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(247, 187, 23, 0.18),
    rgba(247, 187, 23, 0.9),
    rgba(0, 118, 57, 0.3)
  );
  border-radius: 999px;
}

.timeline-row {
  position: relative;
  display: flex;
  width: 100%;
  margin-bottom: 14px;
}

.timeline-row.left,
.timeline-row.right {
  width: 50%;
}

.timeline-row.left {
  justify-content: flex-start;
  margin-right: auto;
  padding-right: 18px;
}

.timeline-row.right {
  justify-content: flex-end;
  margin-left: auto;
  padding-left: 18px;
}

/* POINT CENTRATI */
.timeline-row::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 100%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--yellow);
  box-shadow: 0 0 0 3px rgba(247, 187, 23, 0.12);
  transform: translateX(-50%);
  z-index: 3;
}

.timeline-row.right::before {
  left: 0;
  transform: translateX(-50%);
}

.timeline-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(247, 245, 239, 0.96) 100%
  );
  border: 1px solid rgba(24, 33, 29, 0.08);
  border-radius: 18px;
  padding: 16px 18px 14px;
  box-shadow: 0 10px 26px rgba(24, 33, 29, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 33, 29, 0.1);
}

.timeline-row.left .timeline-card::after,
.timeline-row.right .timeline-card::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 12px;
  height: 12px;
  background: #f7f5ef;
  border-top: 1px solid rgba(24, 33, 29, 0.08);
  border-right: 1px solid rgba(24, 33, 29, 0.08);
}

.timeline-row.left .timeline-card::after {
  right: -6px;
  transform: rotate(45deg);
}

.timeline-row.right .timeline-card::after {
  left: -6px;
  transform: rotate(225deg);
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 5px 10px;
  margin-bottom: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green) 0%, #0b8b47 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px rgba(0, 118, 57, 0.16);
}

.timeline-card h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--dark);
}

.timeline-card p {
  margin: 0;
  color: #4f574f;
  line-height: 1.48;
  font-size: 0.9rem;
}

/* INIZIO / FINE */
.timeline-start,
.timeline-end {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, #0b8b47 100%);
  border-radius: 999px;
  box-shadow: none;
}

.timeline-start {
  top: -52px;
}

.timeline-end {
  bottom: -18px;
}

/* TABLET */
@media (max-width: 980px) {
  .timeline-premium {
    margin-top: 78px;
    padding-bottom: 90px;
  }

  .timeline-premium::before {
    left: 22px;
    top: 0;
    bottom: 18px;
    transform: none;
  }

  .timeline-row,
  .timeline-row.left,
  .timeline-row.right {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
    padding-left: 46px;
    padding-right: 0;
  }

  .timeline-row::before,
  .timeline-row.right::before {
    left: 22px;
    transform: translateX(-50%);
  }

  .timeline-card {
    max-width: 100%;
  }

  .timeline-row.left .timeline-card::after,
  .timeline-row.right .timeline-card::after {
    left: -6px;
    right: auto;
    transform: rotate(225deg);
  }

  .timeline-start,
  .timeline-end {
    left: 22px;
    transform: translateX(-50%);
    min-width: 82px;
    padding: 9px 14px;
    font-size: 0.8rem;
  }

  .timeline-start {
    top: -44px;
  }

  .timeline-end {
    bottom: -10px;
  }
}

/* MOBILE */
@media (max-width: 640px) {
  .timeline-premium {
    margin-top: 72px;
    padding-bottom: 82px;
  }

  .timeline-premium::before {
    left: 18px;
    bottom: 14px;
  }

  .timeline-row,
  .timeline-row.left,
  .timeline-row.right {
    padding-left: 38px;
  }

  .timeline-row::before,
  .timeline-row.right::before {
    left: 18px;
    width: 10px;
    height: 10px;
    border-width: 3px;
  }

  .timeline-card {
    padding: 14px 13px 13px;
    border-radius: 15px;
  }

  .timeline-card h3 {
    font-size: 0.95rem;
  }

  .timeline-card p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .timeline-badge {
    min-width: 56px;
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  .timeline-start,
  .timeline-end {
    left: 18px;
    transform: translateX(-50%);
    min-width: 74px;
    padding: 8px 12px;
    font-size: 0.74rem;
  }

  .timeline-start {
    top: -40px;
  }

  .timeline-end {
    bottom: -8px;
  }
}