/*==================================================
  Volpe & Moschin - Main Stylesheet
  Modern & Clean CSS with Bootstrap 5
==================================================*/

/*--------------------------------------------------
  1. Typography & Base Styles
--------------------------------------------------*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #00A99D;
  --primary-dark: #008c82;
  --secondary-color: #2c3e50;
  --text-color: #444444;
  --text-light: #666666;
  --border-color: #e9ecef;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*--------------------------------------------------
  2. Buttons
--------------------------------------------------*/
.btn-primary {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 169, 157, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 169, 157, 0.3);
}

.btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: 2px solid var(--white);
  transition: var(--transition);
}

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

/*--------------------------------------------------
  3. Utility Classes
--------------------------------------------------*/
.section-header {
  margin-bottom: 50px;
}

.section-subtitle {
  max-width: 800px;
  margin: 20px auto 0;
  font-size: 1.1rem;
  color: var(--text-light);
}

.dot-dash {
  position: relative;
  text-align: center;
  font-size: 55px;
  line-height: 0;
  color: var(--primary-color);
  margin: 20px 0 40px;
  display: block;
}

.dot-dash::before,
.dot-dash::after {
  content: "";
  width: 80px;
  height: 2px;
  background: var(--primary-color);
  position: relative;
  display: inline-block;
  top: -2px;
}

.dot-dash::before {
  margin-right: 10px;
}

.dot-dash::after {
  margin-left: 10px;
}

.dot-dash.dark::before,
.dot-dash.dark::after {
  background: #6a6a6a;
}

/*--------------------------------------------------
  4. Header / Navigation
--------------------------------------------------*/
header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 15px 0;
  transition: var(--transition);
  /*background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);*/
}

header.sticky-header {
  position: fixed;
  padding: 15px 0;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo img {
  max-height: 70px;
  transition: var(--transition);
}

header.sticky-header .logo img {
  max-height: 55px;
}

/* Menu Desktop */
header .menu {
  display: flex;
  align-items: center;
  margin: 0;
}

header .menu li {
  margin-left: 45px;
  position: relative;
}

header .menu li:first-child {
  margin-left: 0;
}

header .menu li a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.3px;
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

header.sticky-header .menu li a {
  color: var(--secondary-color);
}

header .menu.slide-menu li a {
  color: var(--text-color);
}

header.sticky-header .menu .btn-secondary{
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--text-color);
}

header.sticky-header .menu .btn-secondary:hover{
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

header .menu.slide-menu .btn-secondary{
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--text-color);
}

header .menu.slide-menu .btn-secondary:hover{
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

header .menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

header .menu li a:hover::after,
header .menu li a.active::after {
  width: 100%;
}

header .menu li a:hover,
header .menu li a.active {
  color: var(--primary-color);
}

/* CTA Button nel Menu */
header .menu li.cta-menu {
  margin-left: 30px;
}

header .menu li.cta-menu a {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
}

header .menu li.cta-menu a::after {
  display: none;
}

header .menu li.cta-menu a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 169, 157, 0.3);
}

/* Mobile Menu Button */
.mobile-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1000;
}

.mobile-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.mobile-menu span:nth-child(1) {
  top: 0;
}

.mobile-menu span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu span:nth-child(3) {
  bottom: 0;
}

.mobile-menu.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.mobile-menu.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/*--------------------------------------------------
  5. Hero Slider
--------------------------------------------------*/
.home-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
}

.home-slider--inner {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  clip-path: polygon(
          0 0,
          100% 0,
          100% 90%,      /* Lati all'88% */
          50% 100%,       /* Inizia discesa */
          50% 100%,      /* PUNTA V */
          50% 100%,       /* Fine discesa */
          0 90%
  );
}

.home-slider--inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.slider-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.slider-content h3 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.slider-content h1 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.slider-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.9);
}

.slider-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Slider Navigation */
.home-slider--nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.slider-prev,
.slider-next {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.slider-prev {
  left: 30px;
}

.slider-next {
  right: 30px;
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

/* Scroll Down Arrow */
.scroll-down {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-down i {
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.scroll-down:hover i {
  color: var(--primary-color);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

/*--------------------------------------------------
  6. Main Content
--------------------------------------------------*/
.main-content {
  position: relative;
}

/*--------------------------------------------------
  7. Production Process Section
--------------------------------------------------*/
.production-process {
  padding: 75px 0 100px;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.process-row {
  margin-top: 30px;
}

.process-card {
  position: relative;
  padding: 40px 35px;
  background: var(--white);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
  /*margin-bottom: 30px;*/
  overflow: hidden;
}

.process-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 30px rgba(0, 169, 157, 0.12);
  transform: translateY(-5px);
}

.process-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1;
  transition: var(--transition);
}

.process-card:hover .process-number {
  color: rgba(0, 169, 157, 0.15);
  transform: scale(1.1);
}

.process-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 50%;
  transition: var(--transition);
}

.process-card:hover .process-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  transform: scale(1.1);
}

.process-icon img {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.process-card:hover .process-icon img {
  filter: brightness(0) invert(1);
}

.process-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
  text-align: center;
  transition: var(--transition);
}

.process-card:hover h3 {
  color: var(--primary-color);
}

.process-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0;
  text-align: center;
}

/*--------------------------------------------------
  8. Our History Section
--------------------------------------------------*/
.our-history {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.our-history::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 169, 157, 0.03) 100%);
  pointer-events: none;
}

/* History Content */
.history-content {
  padding: 40px 0;
}

.section-label {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(0, 169, 157, 0.1);
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.history-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 25px;
}

.history-content .lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.7;
}

.history-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* History Highlights */
.history-highlights {
  display: flex;
  gap: 40px;
  margin: 35px 0;
  padding: 30px 0;
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
}

.highlight-item {
  flex: 1;
}

.highlight-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
}

.highlight-text {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* History Images */
.history-images {
  position: relative;
  padding: 20px;
}

.image-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.image-main {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  height: 350px;
}

.image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-main:hover img {
  transform: scale(1.05);
}

.image-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.image-small {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 200px;
}

.image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-small:hover img {
  transform: scale(1.05);
}

/* Image Overlay */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-main:hover .image-overlay,
.image-small:hover .image-overlay {
  opacity: 1;
}

.image-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Experience Badge */
.experience-badge {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 120px;
  height: 120px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 169, 157, 0.3);
  z-index: 10;
}

.badge-content {
  text-align: center;
  color: var(--white);
}

.badge-year {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*--------------------------------------------------
  9. CTA Section
--------------------------------------------------*/
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(15deg);
}

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

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 35px;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}

.cta-section .btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/*--------------------------------------------------
  10. Footer
--------------------------------------------------*/
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-widget {
  margin-bottom: 30px;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-widget h4 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contacts li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
}

.footer-contacts i {
  color: var(--primary-color);
  margin-right: 10px;
  margin-top: 3px;
  font-size: 0.9rem;
}

.footer-contacts a,
.footer-contacts a:hover,
.footer-contacts a:focus {
  color: inherit;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/*--------------------------------------------------
  11. Responsive Design
--------------------------------------------------*/

/* Tablet */
@media (max-width: 1200px) {
  /* Header */
  header .menu {
    position: fixed;
    left: -100%;
    background: var(--white);
    top: 0;
    width: 100%;
    min-width: 100%;
    padding: 80px 40px 40px;
    height: auto;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: flex-start;
    overflow-y: visible;
    display: flex;
    justify-content: flex-start;
  }

  header .menu.slide-menu {
    left: 0;
  }

  header .menu li {
    margin: 0 0 8px;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  header .menu li:last-child {
    border-bottom: none;
  }

  header .menu li a {
    font-size: 20px;
    padding: 20px 0;
    font-weight: 500;
    display: block;
  }

  header .menu li a::after {
    display: none;
  }

  header .menu li.cta-menu {
    margin-top: 30px;
    margin-left: 0;
    border-bottom: none;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
  }

  header .menu li.cta-menu a {
    width: 100%;
    text-align: center;
    display: block;
    padding: 16px 0;
    font-size: 18px;
  }

  .mobile-menu {
    display: block;
  }

  /* Hero */
  .slider-content h1 {
    font-size: 3rem;
  }

  .slider-content p {
    font-size: 1rem;
  }

  /* Slider Navigation su Tablet */
  .slider-prev,
  .slider-next {
    display: none !important;
  }

  /* Sections */
  .production-process,
  .our-history,
  .cta-section {
    padding: 30px 0;
  }

  h2 {
    font-size: 2rem;
  }

  .history-content {
    padding: 40px 0 20px;
  }

  .history-images {
    margin-bottom: 40px;
  }

  .experience-badge {
    width: 100px;
    height: 100px;
    bottom: 20px;
    right: 20px;
  }

  .badge-year {
    font-size: 1.6rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  /* Typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  /* Header */
  header {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
  }

  header .container {
    padding: 0 15px;
  }

  header .logo {
    flex: 1;
    z-index: 1001;
  }

  header.sticky-header {
    padding: 10px 0;
  }

  header .menu {
    width: 90%;
    max-width: 380px;
    padding: 70px 35px 35px;
    left: -100%;
    height: auto;
  }

  header .menu li a {
    font-size: 19px;
    padding: 18px 0;
  }

  header .menu li.cta-menu a {
    font-size: 17px;
  }

  .mobile-menu {
    z-index: 1001;
  }

  /* Hero */
  .home-slider {
    height: 100vh;
    min-height: 500px;
  }

  .home-slider--inner {
    height: 100vh;
    min-height: 500px;
  }

  .slider-content h3 {
    font-size: 0.8rem;
  }

  .slider-content h1 {
    font-size: 2rem;
  }

  .slider-content p {
    font-size: 0.95rem;
  }

  .slider-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .slider-prev {
    left: 15px;
  }

  .slider-next {
    right: 15px;
  }

  .scroll-down {
    bottom: 60px;
  }

  .scroll-down i {
    font-size: 1.5rem;
  }

  /* Sections */
  .production-process {
    padding: 55px 0 60px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  /* Sections */
  .production-process,
  .our-history,
  .cta-section {
    padding: 50px 0;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Process Cards */
  .process-card {
    margin-bottom: 20px;
  }

  .process-number {
    font-size: 2.5rem;
    top: 15px;
    right: 15px;
  }

  /* History */
  .history-highlights {
    flex-direction: column;
    gap: 20px;
  }

  .image-main {
    height: 280px;
  }

  .image-small {
    height: 160px;
  }

  .experience-badge {
    width: 90px;
    height: 90px;
  }

  .badge-year {
    font-size: 1.4rem;
  }

  .badge-text {
    font-size: 0.75rem;
  }

  /* CTA */
  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  /* Footer */
  .site-footer {
    padding: 40px 0 20px;
  }
}

@media (max-width: 575px) {
  /* Small adjustments for very small screens */
  header {
    padding: 10px 0;
  }

  .slider-content h1 {
    font-size: 1.75rem;
  }

  .slider-content h3 {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .slider-content p {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .scroll-down {
    bottom: 50px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  /* Sections */
  .production-process {
    padding: 45px 0 50px;
  }

  .history-content h2 {
    font-size: 1.5rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  /* Footer */
  .footer-logo {
    max-width: 150px;
  }

  .footer-widget h4 {
    font-size: 1.1rem;
  }
}


/*==================================================
  About Page - Additional Styles
  Stili specifici per la pagina Chi Siamo
==================================================*/

/*--------------------------------------------------
  Page Hero
--------------------------------------------------*/
.page-hero {
  position: relative;
  height: 80vh;
  min-height: 400px;
}

.page-hero-inner {
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

.page-hero-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding: 8px 20px;
  background: rgba(0, 169, 157, 0.15);
  border-radius: 50px;
  border: 1px solid rgba(0, 169, 157, 0.3);
}

.page-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-hero-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/*--------------------------------------------------
  Section Label (Etichetta sezione)
--------------------------------------------------*/
.intro-section{
  padding: 100px 0;
  background: var(--white);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 6px 18px;
  background: rgba(0, 169, 157, 0.1);
  border-radius: 50px;
  border: 1px solid rgba(0, 169, 157, 0.2);
}

/*--------------------------------------------------
  About Story Section
--------------------------------------------------*/
.about-story {
  padding: 100px 0;
  background: var(--white);
}

.story-content {
  padding-right: 40px;
}

.story-content h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.story-content .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 25px;
  line-height: 1.7;
}

.story-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.story-quote {
  position: relative;
  padding: 30px 40px;
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  margin: 40px 0;
  border-radius: 8px;
}

.story-quote i {
  position: absolute;
  top: 20px;
  left: 15px;
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.3;
}

.story-quote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--secondary-color);
  margin: 0;
  padding-left: 25px;
  line-height: 1.7;
}

.story-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.story-image:hover img {
  transform: scale(1.05);
}

.story-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 120px;
  height: 120px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 169, 157, 0.4);
}

.story-badge .badge-year {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 5px;
}

.story-badge .badge-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*--------------------------------------------------
  Turning Point Section
--------------------------------------------------*/
.about-turning-point {
  padding: 100px 0;
  background: var(--bg-light);
}

.turning-content {
  padding-left: 40px;
}

.turning-content h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.turning-content .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 25px;
  line-height: 1.7;
}

.turning-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.turning-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.turning-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.turning-image:hover img {
  transform: scale(1.05);
}

.turning-milestones {
  margin-top: 40px;
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 25px;
  background: var(--white);
  border-radius: 10px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.milestone-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transform: translateX(5px);
}

.milestone-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 169, 157, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.milestone-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.milestone-text h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.milestone-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/*--------------------------------------------------
  Today Section
--------------------------------------------------*/
.about-today {
  padding: 100px 0;
  background: var(--white);
}

.today-features {
  margin-top: 60px;
}

.today-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition);
  height: 100%;
  margin-bottom: 30px;
}

.today-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 30px rgba(0, 169, 157, 0.15);
  transform: translateY(-5px);
}

.today-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 50%;
  transition: var(--transition);
}

.today-card:hover .today-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  transform: scale(1.1);
}

.today-icon i {
  font-size: 2rem;
  color: var(--primary-color);
}

.today-card:hover .today-icon i {
  filter: brightness(0) invert(1);
}

.today-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.today-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/*--------------------------------------------------
  Values Section
--------------------------------------------------*/
.about-values {
  padding: 100px 0;
  background: var(--bg-light);
}

.values-row {
  margin-top: 60px;
}

.value-card {
  position: relative;
  padding: 40px 35px;
  background: var(--white);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
  /*margin-bottom: 30px;*/
  overflow: hidden;
}

.value-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 30px rgba(0, 169, 157, 0.12);
  transform: translateY(-5px);
}

.value-number {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(0, 169, 157, 0.08);
  line-height: 1;
  transition: var(--transition);
}

.value-card:hover .value-number {
  color: rgba(0, 169, 157, 0.15);
  transform: scale(1.1);
}

.value-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
  position: relative;
  z-index: 2;
}

/*--------------------------------------------------
  Numbers Section
--------------------------------------------------*/
.about-numbers {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.about-numbers::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(15deg);
}

.number-card {
  text-align: center;
  padding: 30px 20px;
  position: relative;
  z-index: 2;
}

.number-value {
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.number-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*--------------------------------------------------
  Responsive Design
--------------------------------------------------*/

/* Tablet */
@media (max-width: 991px) {
  .page-hero {
    height: 50vh;
    min-height: 350px;
    margin-top: 85px;
  }

  .page-hero-content h1 {
    font-size: 2.5rem;
  }

  .page-hero-content p {
    font-size: 1.05rem;
  }

  .about-story,
  .about-turning-point,
  .about-today,
  .about-values {
    padding: 70px 0;
  }

  .story-content,
  .turning-content {
    padding: 0;
    margin-bottom: 40px;
  }

  .story-content h2,
  .turning-content h2 {
    font-size: 2.3rem;
  }

  .story-content .lead,
  .turning-content .lead {
    font-size: 1.15rem;
  }

  .milestone-item {
    padding: 20px;
  }

  .today-card,
  .value-card {
    margin-bottom: 25px;
  }

  .number-value {
    font-size: 3.5rem;
  }

  .number-label {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .page-hero {
    height: 45vh;
    min-height: 300px;
    margin-top: 75px;
  }

  .page-hero-content h1 {
    font-size: 2rem;
  }

  .page-hero-content p {
    font-size: 0.95rem;
  }

  .page-label {
    font-size: 0.75rem;
    padding: 6px 15px;
  }

  .about-story,
  .about-turning-point,
  .about-today,
  .about-values {
    padding: 50px 0;
  }

  .about-numbers {
    padding: 50px 0;
  }

  .story-content h2,
  .turning-content h2 {
    font-size: 1.9rem;
  }

  .story-content .lead,
  .turning-content .lead {
    font-size: 1.05rem;
  }

  .story-content p,
  .turning-content p {
    font-size: 0.95rem;
  }

  .story-quote {
    padding: 25px 20px;
    margin: 30px 0;
  }

  .story-quote p {
    font-size: 1rem;
    padding-left: 15px;
  }

  .story-badge {
    width: 100px;
    height: 100px;
    bottom: 20px;
    right: 20px;
  }

  .story-badge .badge-year {
    font-size: 1.6rem;
  }

  .story-badge .badge-text {
    font-size: 0.75rem;
  }

  .milestone-item {
    padding: 20px;
    margin-bottom: 20px;
  }

  .milestone-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
  }

  .milestone-icon i {
    font-size: 1.2rem;
  }

  .milestone-text h4 {
    font-size: 1.05rem;
  }

  .milestone-text p {
    font-size: 0.9rem;
  }

  .today-card {
    padding: 30px 20px;
    margin-bottom: 20px;
  }

  .today-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .today-icon i {
    font-size: 1.7rem;
  }

  .today-card h3 {
    font-size: 1.15rem;
  }

  .today-card p {
    font-size: 0.9rem;
  }

  .value-card {
    padding: 30px 25px;
    margin-bottom: 20px;
  }

  .value-number {
    font-size: 3rem;
    top: 15px;
    right: 20px;
  }

  .value-card h3 {
    font-size: 1.2rem;
  }

  .value-card p {
    font-size: 0.9rem;
  }

  .number-card {
    padding: 25px 15px;
    margin-bottom: 20px;
  }

  .number-value {
    font-size: 3rem;
  }

  .number-label {
    font-size: 0.9rem;
  }
}

@media (max-width: 575px) {
  .page-hero-content h1 {
    font-size: 1.7rem;
  }

  .story-content h2,
  .turning-content h2 {
    font-size: 1.6rem;
  }

  .number-value {
    font-size: 2.5rem;
  }

  .number-label {
    font-size: 0.85rem;
  }
}


.admin-card{
  background: #ffffff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(31, 49, 64, 0.08);
}

.admin-card h3,
.admin-card h4 {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.admin-form .form-group {
  margin-bottom: 18px;
}

.admin-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary-color);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e6e9ee;
  border-radius: 14px;
  background: #f9fafb;
  color: var(--text-color);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(253, 80, 46, 0.1);
}

.admin-grid {
  gap: 32px;
}

.admin-tabs {
  background: rgba(255,255,255,0.95);
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(31, 49, 64, 0.08);
}

.admin-tabs-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab-button {
  border: 1px solid #e6e9ee;
  background: #f8f9fa;
  color: var(--secondary-color);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.tab-button.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border: 1px solid #e6e9ee;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #f8f9fa;
  color: var(--secondary-color);
  font-weight: 600;
}

.admin-table-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Modal Styles */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}

.modal-close:hover {
  color: #000;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #d31b1b;
  border: 1px solid #b21616;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger:hover {
  background: #a71414;
}

/* Admin Button Overrides */
.admin-card .btn-primary,
.modal-content .btn-primary,
.admin-table .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 8px;
}

.admin-card .btn-primary:hover,
.modal-content .btn-primary:hover,
.admin-table .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.admin-card .btn-secondary,
.modal-content .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6c757d;
  color: white;
  border: 1px solid #6c757d;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.admin-card .btn-secondary:hover,
.modal-content .btn-secondary:hover {
  background: #5a6268;
  border-color: #5a6268;
}


/*--------------------------------------------------
  Cookie Consent — Banner, Preferenze, Mappa
--------------------------------------------------*/
body.cookie-no-scroll { overflow: hidden; }

/* Banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2000;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 1.5rem 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
  animation: cookieUp 0.4s ease;
}

@keyframes cookieUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.cookie-banner-text { flex: 1 1 460px; }

.cookie-banner-text h4 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.cookie-banner-text h4 i { color: var(--primary-color); margin-right: 0.4rem; }

.cookie-banner-text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-light);
}

.cookie-banner-text a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Bottoni cookie */
.cookie-btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}
.cookie-btn-accept:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.cookie-btn-outline {
  background: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.cookie-btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.cookie-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-light);
  text-decoration: underline;
  padding-left: 12px;
  padding-right: 12px;
}
.cookie-btn-ghost:hover { color: var(--secondary-color); }

/* Pannello preferenze */
.cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-prefs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.cookie-prefs-dialog {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: cookieUp 0.35s ease;
}

.cookie-prefs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
}
.cookie-prefs-header h3 { margin: 0; font-size: 1.4rem; }

.cookie-prefs-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}
.cookie-prefs-close:hover { color: var(--primary-color); }

.cookie-prefs-body { padding: 1.5rem 1.75rem; }
.cookie-prefs-body > p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.cookie-option {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-light);
}

.cookie-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.cookie-option-head h4 { margin: 0; font-size: 1.05rem; }

.cookie-option > p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #c4c8cf;
  border-radius: 26px;
  transition: 0.3s;
}
.cookie-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.3s;
}
.cookie-switch input:checked + .cookie-slider { background: var(--primary-color); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(22px); }
.cookie-switch-locked .cookie-slider { background: var(--primary-color); opacity: 0.55; cursor: not-allowed; }

.cookie-prefs-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-color);
}

/* Link legali nel footer */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.footer-legal li { display: inline-flex; }
.footer-legal a,
.footer-legal-btn {
  font-size: 0.85rem;
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.footer-legal a:hover,
.footer-legal-btn:hover { opacity: 1; color: var(--primary-color); text-decoration: underline; }

/* Placeholder mappa (consenso negato) */
.map-consent { width: 100%; }
.map-consent-placeholder {
  width: 100%;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 2.5rem 1.5rem;
  background: var(--bg-light);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
}
.map-consent-placeholder i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.map-consent-placeholder h4 { margin: 0; }
.map-consent-placeholder > p {
  max-width: 460px;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.map-consent-placeholder .btn-primary { margin-top: 0.5rem; }
.map-consent-note { font-size: 0.8rem; margin-top: 1rem; }
.map-consent-note a { color: var(--primary-color); text-decoration: underline; }

/* Pagine legali (privacy / cookie policy) */
.legal-page { padding: 4rem 0 5rem; }
.legal-page .legal-content {
  max-width: 880px;
  margin: 0 auto;
}
.legal-page h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.legal-page p,
.legal-page li { color: var(--text-color); }
.legal-page ul.legal-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-page ul.legal-list li { margin-bottom: 0.5rem; }
.legal-page a { color: var(--primary-color); text-decoration: underline; }
.legal-updated {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-light);
  background: var(--bg-light);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.88rem;
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--border-color);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.legal-table th { background: var(--bg-light); color: var(--secondary-color); }
.legal-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.legal-box p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .cookie-banner { padding: 1.25rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .cookie-btn { flex: 1 1 auto; text-align: center; }
  .legal-table { display: block; overflow-x: auto; white-space: nowrap; }
}
