/*
* Main Stylesheet
* Table of Contents:
* 1. Variables & Custom Properties
* 2. Base & Reset
* 3. Typography
* 4. Layout & Grid
* 5. Utilities
* 6. Components
*   6.1 Buttons
*   6.2 Cards
*   6.3 Forms
* 7. Header & Navigation
* 8. Sections
*   8.1 Hero
*   8.2 Services
*   8.3 Features
*   8.4 Hours
*   8.5 About
*   8.6 Testimonials
*   8.7 Location
*   8.8 FAQ
*   8.9 Contact
*   8.10 CTA
*   8.11 Policy 
* 9. Footer
* 10. Animations
* 11. Responsive Adjustments
* 12. Utility Helpers
*/

/* ======================================
* 1. Variables & Custom Properties
====================================== */
:root {
  /* Colors */
  --primary-color: #e74c3c;
  --secondary-color: #2ecc71;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #777;
  --text-white: #fff;

  /* Typography */
  --font-primary: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Effects */
  --transition-standard: all 0.3s ease;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);

  /* Layout */
  --container-width: 1200px;
  --border-radius: 4px;
}

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

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

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

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul,
ol {
  list-style-type: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ======================================
* 3. Typography
====================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  color: inherit;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-secondary {
  color: var(--secondary-color);
}

.text-primary {
  color: var(--primary-color);
}

/* ======================================
* 4. Layout & Grid
====================================== */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* Grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1;
  padding: 0 1rem;
  min-width: 0;
}

/* ======================================
* 5. Utilities
====================================== */
/* Flexbox helpers */
.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

/* Margin utility */
.mt-5 {
  margin-top: 5rem;
}

/* ======================================
* 6. Components
====================================== */
/* 6.1 Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition-standard);
  background-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: var(--box-shadow);
}

.btn:hover,
.btn:focus {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.btn:active {
  transform: translateY(-1px);
}

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

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

.btn-outline {
  background-color: transparent;
  border: 2px solid currentColor;
  padding: calc(0.75rem - 2px) calc(1.5rem - 2px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* 6.2 Cards */
.card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition-standard);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.card-body {
  padding: 2rem;
}

/* 6.3 Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: #f8f9fa;
  transition: var(--transition-standard);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

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

.form-submit {
  width: 100%;
}

.form-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  display: none;
}

.form-message.success {
  display: block;
  background-color: rgba(46, 204, 113, 0.1);
  color: #27ae60;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error {
  display: block;
  background-color: rgba(231, 76, 60, 0.1);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
}

.input-group .form-control {
  padding-left: 3rem;
}

.textarea-group .input-icon {
  top: 0.75rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  margin-right: 0.5rem;
  margin-top: 0.3rem;
}

/* ======================================
* 7. Header & Navigation
====================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-standard);
}

.header.scrolled {
  padding: 0.5rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark-color);
}

.logo img {
  max-height: 76px;
  max-width: 92%;
  width: auto;
  margin-right: 0.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  position: relative;
  color: var(--text-color);
  font-weight: 500;
  padding-bottom: 0.25rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-standard);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
}

.close-menu {
  /* Hidden by default on desktop */
  display: none;
}

/* ======================================
* 8. Sections
====================================== */
/* 8.1 Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background-color: var(--dark-color);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    rgba(44, 62, 80, 0.7),
    rgba(44, 62, 80, 0.7)
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* z-index: -1; */
  animation: zoomBg 20s infinite alternate;
}

.hero--bari::before {
  /* Layer 1: your existing 70 % slate overlay   */
  /* Layer 2: responsive Bari image via image-set */
  background-image: linear-gradient(
      rgba(44, 62, 80, 0.6),
      rgba(44, 62, 80, 0.6)
    ),
    image-set(
      url("/immagini/hero-bari-3840.webp") type("image/webp") 2x,
      url("/immagini/hero-bari-1920.webp") type("image/webp") 1x
    );
  background-size: cover;
  background-position: center;
}

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

.hero-title {
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s 0.5s both;
}

.hero-text {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  animation: fadeInUp 1s 0.7s both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 1s 0.9s both;
}

.hero-trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 5rem;
  animation: fadeInUp 1s 1.1s both;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

.trust-badge i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.hero-scroll-indicator a {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
}

.hero-scroll-indicator a:hover {
  background-color: var(--primary-color);
}

/* 8.2 Services */
.services {
  background-color: var(--light-color);
}

.services-grid {
  margin-bottom: 3rem;
}

.service-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
  transition: var(--transition-standard);
  border-radius: var(--border-radius);
  background-color: #fff;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  font-size: 2rem;
  color: #fff;
  margin-left: auto;
  margin-right: auto;
}

.icon-gestione {
  background-color: #3498db;
}

.icon-professionalita {
  background-color: var(--primary-color);
}

.icon-apertura {
  background-color: #f1c40f;
}

.service-title {
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-text {
  color: var(--text-light);
}

.service-features {
  margin: 1.5rem 0;
  text-align: left;
}

.service-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.service-features li i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.service-link {
  margin-top: auto;
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
}

.service-link i {
  transition: transform 0.3s ease;
  margin-left: 0.3rem;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Counter section */
.counter-section {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.counter-item {
  padding: 2rem;
}

.counter-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.counter-text {
  color: var(--text-light);
  font-weight: 500;
}

/* 8.3 Features */
.features {
  background-color: #fff;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-right: 1rem;
  border-radius: 50%;
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.feature-content {
  flex-grow: 1;
}

.feature-title {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-text {
  color: var(--text-light);
}

/* 8.4 Hours */
.hours {
  background-color: var(--secondary-color);
  color: var(--text-white);
  padding: 4rem 0;
  text-align: center;
}

.hours-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hours-title {
  margin-bottom: 1rem;
  font-weight: 600;
}

.hours-text {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.hours-highlight {
  display: block;
  margin: 1.5rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.hours-icon {
  margin-bottom: 1.5rem;
  color: white;
}

.hours-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* 8.5 About */
.about {
  background-color: var(--dark-color);
  color: var(--text-white);
}

.about-image {
  position: relative;
  height: 100%;
  min-height: 300px;
}

.about-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
}

.about-content {
  padding: 2rem 0;
}

.about-title {
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-text {
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}

.about-experience-badge {
  position: absolute;
  right: -20px;
  top: 30px;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.experience-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.experience-text {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.about-cta {
  margin-top: 2rem;
}

.values-list {
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.value-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 1rem;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
}

.icon-onesta {
  background-color: var(--primary-color);
}

.icon-trasparenza {
  background-color: var(--secondary-color);
}

.icon-disponibilita {
  background-color: #3498db;
}

.value-content {
  flex-grow: 1;
}

.value-title {
  margin-bottom: 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
}

.value-text {
  color: #e0e0e0;
  margin-bottom: 0;
}

/* 8.6 Testimonials */
.testimonials {
  background-color: #f9f9f9;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
}

.testimonial-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.testimonial-item {
  position: relative;
  padding: 2rem;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  max-width: 90%;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.testimonial-text {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--text-light);
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: 0;
  left: 1rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.1);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  background-color: #f1f1f1;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-role {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.testimonial-prev,
.testimonial-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: #c0392b;
  transform: scale(1.1);
}

.testimonial-dot {
  display: flex;
  gap: 0.5rem;
  margin: 0 1rem;
  flex-direction: row;
}

.testimonial-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.testimonials .btn-outline {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

/* 8.7 Location */
.location {
  background-color: #fff;
  padding: 5rem 0;
  color: var(--text-color);
}

.location-content {
  max-width: 600px;
  margin: 0 auto;
}

.location-title {
  margin-bottom: 1rem;
  font-weight: 600;
}

.location-text {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.location-map {
  height: 100%;
  min-height: 450px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-top: 2rem;
}

.location-info {
  margin: 2rem 0;
  color: var(--text-color);
}

.location-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.location-info-item i {
  width: 30px;
  height: 30px;
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.location-buttons {
  display: flex;
  gap: 1rem;
}

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

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

/* 8.8 FAQ */
.faq {
  background-color: #f9f9f9;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
}

.faq-toggle {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  background-color: var(--primary-color);
  color: white;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 1000px;
}

/* 8.9 Contact */
.contact {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    rgba(44, 62, 80, 0.9),
    rgba(44, 62, 80, 0.9)
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.contact-content {
  position: relative;
  z-index: 1;
  color: var(--text-white);
}

.contact .section-title {
  color: white;
}

.about .section-subtitle,
.contact .section-subtitle {
  color: #f5f5f5;
  font-weight: 400;
}

.contact-info {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  flex-shrink: 0;
  margin-right: 1rem;
  font-size: 1.5rem;
}

.contact-text {
  flex-grow: 1;
}

.contact-title {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.contact-social {
  display: flex;
  margin-top: 1.5rem;
}

.contact-social .social-link {
  margin-right: 1rem;
}

/* 8.10 CTA */
.cta-section {
  background-color: var(--dark-color);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-text {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* 8.11 Policy */
.policy-section {
  margin-top: 6rem;
}

/* ======================================
* 9. Footer
====================================== */
.footer {
  padding: 4rem 0 2rem;
  background-color: var(--dark-color);
  color: #bdc3c7;
}

.footer-logo {
  display: block;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
}

.footer-about {
  margin-bottom: 2rem;
}

.footer-title {
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-contact-list {
  margin-bottom: 2rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.footer-links {
  margin-bottom: 2rem;
}

.footer-links a {
  display: block;
  padding: 0.5rem 0;
  color: #bdc3c7;
  transition: var(--transition-standard);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 0.5rem;
}

.footer-social {
  display: flex;
  margin-bottom: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-right: 0.75rem;
  transition: var(--transition-standard);
}

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

.footer-newsletter-text {
  margin-bottom: 1rem;
}

.newsletter-input-group {
  display: flex;
  height: 45px;
}

.newsletter-input-group input {
  flex: 1;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0 1rem;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-group button {
  width: 45px;
  background-color: var(--primary-color);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  transition: all 0.3s ease;
}

.newsletter-input-group button:hover {
  background-color: #c0392b;
}

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

.copyright {
  margin-bottom: 1rem;
}

.footer-bottom-links a {
  color: #bdc3c7;
  margin: 0 0.75rem;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ======================================
* 10. Animations
====================================== */
@keyframes zoomBg {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

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

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
* 11. Responsive Adjustments
====================================== */
/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-standard);
  z-index: 99;
  box-shadow: var(--box-shadow);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
}

/* WhatsApp button */
.whatsapp-button {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 99;
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

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

.cookie-buttons .btn-outline:hover {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--primary-color);
}

/* ======================================
* 12. Media Queries
====================================== */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-trust-badges {
    margin-top: 2.25rem;
    gap: 1.25rem;
  }

  .counter-section {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .section {
    padding: 3rem 0;
  }

  .row {
    flex-direction: column;
    margin: 0 -0.5rem;
  }

  .col {
    width: 100%;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .col:last-child {
    margin-bottom: 0;
  }

  .about-image {
    margin-bottom: 2rem;
  }

  .contact-info {
    margin-bottom: 2rem;
  }

  /* Navigation mobile styles */
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 4rem 1rem 2rem;
    transition: 0.4s;
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    margin: 0.5rem 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.5rem 0;
  }

  .close-menu {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
  }

  /* Hero mobile styles */
  .hero {
    height: auto;
    min-height: 500px;
    padding: 100px 0 50px;
  }

  .hero--bari::before {
    background-image: linear-gradient(
        rgba(44, 62, 80, 0.5),
        rgba(44, 62, 80, 0.5)
      ),
      url("/immagini/hero-bari-1280.webp");
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }

  /* Hours section mobile */
  .hours-cta {
    flex-direction: column;
    width: 100%;
  }

  /* Features section mobile */
  .features .col {
    margin-bottom: 0;
  }

  /* About section mobile */
  .about .row .col:first-child {
    display: none;
  }

  .about .row .col:last-child {
    width: 100%;
    padding: 0;
  }

  .about-content {
    text-align: center;
    padding: 0 0.5rem 1rem 0.5rem;
  }

  .value-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
  }

  .value-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .about-cta {
    display: flex;
    justify-content: center;
  }

  /* Location mobile */
  .location-buttons {
    flex-direction: column;
  }

  /* CTA section mobile */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Counter section adjustments */
  .counter-section {
    margin-top: 0.5rem;
  }

  .counter-item {
    padding: 1rem 0.5rem;
  }

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

  /* Cookie banner mobile */
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    margin: 0 0 1rem 0;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero-trust-badges {
    margin-top: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .trust-badge {
    flex-direction: row;
    gap: 0.5rem;
  }

  .trust-badge i {
    margin-bottom: 0;
  }

  .counter-item {
    padding: 0.75rem 0.5rem;
    width: 100%;
  }

  .whatsapp-button,
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .policy-section {
    margin-top: 25%;
  }
}
