/* ============================================
   F.lli Fogliarino SRL - Sito Web
   Ispirato a stile concessionaria agricola
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3A3A3A;
  --primary-dark: #2C2C2C;
  --primary-light: #555555;
  --accent: #C8102E;
  --accent-light: #D4394F;
  --dark: #333333;
  --gray: #666666;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: var(--white);
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.top-bar-right a {
  font-size: 1.1rem;
}

/* --- News Ticker --- */
.news-ticker {
  background: linear-gradient(135deg, #2C2C2C, #3A3A3A);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
  position: relative;
  z-index: 999;
}

.news-ticker-label {
  background: var(--accent);
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
  box-shadow: 4px 0 8px rgba(0,0,0,0.15);
}

.news-ticker-label i {
  font-size: 0.85rem;
}

.news-ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.news-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll var(--ticker-duration, 30s) linear infinite;
  will-change: transform;
}

.news-ticker-track:hover {
  animation-play-state: paused;
}

.news-ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 30px;
  font-size: 0.85rem;
  font-weight: 400;
  white-space: nowrap;
  cursor: default;
}

.news-ticker-item .ticker-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.news-ticker-item .ticker-cat {
  background: rgba(255,255,255,0.2);
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 10px;
  flex-shrink: 0;
}

.news-ticker-item .ticker-title {
  margin-right: 8px;
}

.news-ticker-item .ticker-date {
  opacity: 0.6;
  font-size: 0.75rem;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Header / Navbar --- */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Logo Brand (testuale) --- */
.logo-brand {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  padding-bottom: 6px;
}

.logo-flli {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  font-style: italic;
  color: var(--dark);
  margin-right: 2px;
  position: relative;
  top: -6px;
}

.logo-fogliarino {
  font-family: 'Raleway', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 1px;
  line-height: 1;
}

.logo-srl {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  margin-left: 2px;
  position: relative;
  bottom: -2px;
}

.logo-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #d32f2f;
  border-radius: 2px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0;
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.65rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav-links a {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  /* background gestito dagli hero-bg-slide */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,44,44,0.85) 0%, rgba(58,58,58,0.75) 50%, rgba(44,44,44,0.70) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Sezione Generica --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--light-gray);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-dark .section-title h2 {
  color: var(--white);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-title p {
  color: rgba(255,255,255,0.8);
}

.section-title .line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* --- Chi Siamo --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--gray);
}

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 25px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Raleway', sans-serif;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
}

/* --- Prodotti / Categorie --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-image .overlay-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.product-card-image.cat-trattori { background: linear-gradient(135deg, #3A3A3A, #555555); }
.product-card-image.cat-rimorchi { background: linear-gradient(135deg, #E65100, #F57C00); }
.product-card-image.cat-fienagione { background: linear-gradient(135deg, #558B2F, #7CB342); }
.product-card-image.cat-terreno { background: linear-gradient(135deg, #4E342E, #795548); }
.product-card-image.cat-telescopici { background: linear-gradient(135deg, #1565C0, #1E88E5); }
.product-card-image.cat-diserbo { background: linear-gradient(135deg, #6A1B9A, #8E24AA); }
.product-card-image.cat-viabilita { background: linear-gradient(135deg, #0277BD, #039BE5); }
.product-card-image.cat-usato { background: linear-gradient(135deg, #BF360C, #E64A19); }

.product-card-body {
  padding: 20px;
}

.product-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.product-card-body p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- Marchi --- */
.brands-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.brand-item {
  background: var(--white);
  padding: 25px 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 90px;
}

.brand-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.brand-item span {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--dark);
}

/* --- Servizi --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  text-align: center;
  padding: 40px 25px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* --- Contatti --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-list li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-info-list .icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-list h4 {
  font-size: 1rem;
  margin-bottom: 3px;
}

.contact-info-list p, .contact-info-list a {
  color: var(--gray);
  font-size: 0.95rem;
}

.contact-info-list a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58,58,58,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.btn-submit {
  background: var(--primary);
  color: var(--white);
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

/* --- Orari --- */
.hours-table {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.hours-table td {
  padding: 12px 15px;
  font-size: 1.05rem;
}

.hours-table td:first-child {
  font-weight: 700;
}

.hours-table td:last-child {
  text-align: right;
}

.hours-table tr.closed td:last-child {
  color: var(--accent);
}

/* --- Mappa --- */
.map-section {
  padding: 0;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer p, .footer a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer a:hover {
  color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a::before {
  content: '\203A';
  margin-right: 8px;
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* --- Hamburger animation --- */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Responsive: Tablet (max 992px) --- */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 15px 20px;
    box-shadow: var(--shadow-lg);
    gap: 0;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Responsive: Mobile (max 768px) --- */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 400px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 5px 15px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .top-bar-left, .top-bar-right {
    justify-content: center;
    width: 100%;
  }

  .about-stats {
    justify-content: center;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .product-card-image {
    height: 140px;
    font-size: 2.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .brands-grid {
    gap: 15px;
  }

  .brand-item {
    min-width: 140px;
    padding: 18px 22px;
  }

  .brand-item span {
    font-size: 1rem;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .logo-fogliarino {
    font-size: 1.2rem;
  }

  .logo-flli {
    font-size: 0.65rem;
    top: -4px;
  }

  .logo-srl {
    font-size: 0.6rem;
  }

  .logo-text span {
    font-size: 0.55rem;
  }

  .map-section iframe {
    height: 300px;
  }

  .news-ticker {
    height: 32px;
  }
  .news-ticker-label {
    padding: 0 10px;
    font-size: 0.65rem;
  }
  .news-ticker-item {
    font-size: 0.78rem;
    padding: 0 20px;
  }
}

/* --- Responsive: Small Mobile (max 480px) --- */
@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 350px;
  }

  .about-stats {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .top-bar {
    font-size: 0.78rem;
  }

  .top-bar-left {
    gap: 10px;
    flex-wrap: wrap;
  }

  .hours-table td {
    padding: 10px 8px;
    font-size: 0.9rem;
  }

  .footer-grid {
    gap: 25px;
  }
}

/* --- News --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-date-badge {
  min-width: 80px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
}

.news-day {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  font-family: 'Raleway', sans-serif;
}

.news-month {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.news-year {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 2px;
}

.news-card-body {
  padding: 18px 20px;
  flex: 1;
}

.news-category {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 12px;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.news-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
  line-height: 1.3;
}

.news-card-body p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .news-date-badge {
    min-width: 65px;
    padding: 12px 8px;
  }
  .news-day {
    font-size: 1.4rem;
  }
  .news-card-body {
    padding: 14px 15px;
  }
  .news-card-body h3 {
    font-size: 0.95rem;
  }
}

/* --- Logo Image --- */
.logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

/* --- Brand Logo Images --- */
.brand-item img {
  max-height: 50px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.brand-item:hover img {
  filter: grayscale(0%);
}

/* --- Usato Section --- */
.usato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.usato-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.usato-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.usato-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.usato-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.usato-card:hover .usato-card-image img {
  transform: scale(1.05);
}

.usato-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: white;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.usato-card-body {
  padding: 18px;
}

.usato-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.usato-card-body .usato-category {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.usato-card-body .usato-details {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 10px;
}

.usato-card-body .usato-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Raleway', sans-serif;
}

.usato-cta {
  text-align: center;
  margin-top: 35px;
}

/* --- Gallery / Galleria foto --- */
.gallery-section {
  padding: 60px 0;
  background: var(--light-gray);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 20px 15px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .usato-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .usato-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Scroll animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NUOVE SEZIONI - Miglioramenti
   ============================================ */

/* --- Recensioni / Slider --- */
#recensioni {
  background: linear-gradient(135deg, #f8f8f8 0%, #eeeeee 100%);
}

.reviews-slider {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25,0.8,0.25,1);
}

.review-card {
  min-width: 100%;
  padding: 40px 60px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  text-align: center;
  box-sizing: border-box;
}

.review-stars {
  color: #FFB300;
  font-size: 1.3rem;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.review-text {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
}

.review-text::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--primary-light);
  position: absolute;
  top: -25px;
  left: -10px;
  opacity: 0.3;
  font-family: Georgia, serif;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.review-author strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
}

.review-author span {
  font-size: 0.85rem;
  color: var(--gray);
}

.review-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.review-arrow:hover {
  background: var(--primary);
  color: white;
}

.review-prev { left: -5px; }
.review-next { right: -5px; }

.review-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.review-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--medium-gray);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.review-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .review-card {
    padding: 30px 25px;
  }
  .review-text {
    font-size: 0.95rem;
  }
  .review-arrow {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  .review-prev { left: 2px; }
  .review-next { right: 2px; }
}

/* --- Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10000;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-caption {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  background: rgba(0,0,0,0.6);
  padding: 8px 24px;
  border-radius: 30px;
  white-space: nowrap;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: rgba(255,255,255,0.9);
  z-index: 10000;
  padding: 18px 25px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(0);
  transition: transform 0.5s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.cookie-content p {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  min-width: 200px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.cookie-accept:hover {
  background: var(--primary-dark);
}

.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.cookie-decline:hover {
  color: white;
  border-color: white;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 25px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(58,58,58,0.3);
  z-index: 998;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* --- Preventivo Rapido Popup --- */
.preventivo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.preventivo-box {
  background: white;
  border-radius: 16px;
  padding: 35px;
  max-width: 450px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.preventivo-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
  transition: color 0.2s;
}

.preventivo-close:hover {
  color: var(--dark);
}

.preventivo-box h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.preventivo-box h3 i {
  color: var(--accent);
  margin-right: 8px;
}

.preventivo-box > p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.preventivo-box form input,
.preventivo-box form select,
.preventivo-box form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--medium-gray);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.preventivo-box form input:focus,
.preventivo-box form select:focus,
.preventivo-box form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58,58,58,0.12);
}

.preventivo-box .btn-submit {
  margin-top: 5px;
}

/* --- Hero Preventivo Button --- */
.btn-preventivo {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  font-family: 'Lato', sans-serif;
}

.btn-preventivo:hover {
  background: white;
  color: var(--primary);
  border-color: white;
  transform: translateY(-2px);
}

/* --- Hero Slider Background --- */
@keyframes heroSlide {
  0%, 30%   { opacity: 1; }
  33%, 63%  { opacity: 0; }
  66%, 96%  { opacity: 0; }
  100%      { opacity: 1; }
}

.hero {
  position: relative;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroSlide 18s infinite;
}

.hero-bg-slide:nth-child(2) {
  animation-delay: -12s;
}

.hero-bg-slide:nth-child(3) {
  animation-delay: -6s;
}

/* --- Gallery item zoom cursor --- */
.gallery-item {
  cursor: zoom-in;
}

/* ============================================
   V6 - Parallax, Timeline, Gallery Filters,
   Finance Calculator, Weather, Booking
   ============================================ */

/* --- 1. PARALLAX --- */
.hero {
  background-attachment: fixed;
}

.hero-bg-slide {
  background-attachment: fixed;
}

.parallax-section {
  background-image: url('../img/campo.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}

.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 44, 0.90);
  z-index: 0;
}

.parallax-section > .container {
  position: relative;
  z-index: 1;
}

/* --- 2. GALLERY FILTERS --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 30px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  color: var(--white);
}

.gallery-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* --- 3. TIMELINE --- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 40px;
  box-sizing: border-box;
}

.timeline-item[data-side="left"] {
  left: 0;
  text-align: right;
}

.timeline-item[data-side="right"] {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 8px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: 4px solid var(--white);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--primary);
}

.timeline-item[data-side="left"]::before {
  right: -9px;
}

.timeline-item[data-side="right"]::before {
  left: -9px;
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  position: relative;
}

.timeline-content::after {
  content: '';
  position: absolute;
  top: 12px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline-item[data-side="left"] .timeline-content::after {
  right: -20px;
  border-left-color: var(--white);
}

.timeline-item[data-side="right"] .timeline-content::after {
  left: -20px;
  border-right-color: var(--white);
}

.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Timeline responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 55px;
    padding-right: 15px;
  }

  .timeline-item::before {
    left: 11px !important;
    right: auto !important;
  }

  .timeline-item[data-side="left"] .timeline-content::after {
    right: auto;
    left: -20px;
    border-left-color: transparent;
    border-right-color: var(--white);
  }
}

/* --- 4. FINANCE CALCULATOR RESULTS --- */
.finance-result {
  margin-top: 20px;
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid var(--primary-light);
}

.finance-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(58,58,58,0.15);
}

.finance-result-row:last-of-type {
  border-bottom: none;
}

.finance-result-row span {
  font-size: 0.95rem;
  color: var(--gray);
}

.finance-result-row strong {
  font-size: 1.05rem;
  color: var(--dark);
}

.finance-rata {
  font-size: 1.5rem !important;
  color: var(--primary) !important;
  font-family: 'Raleway', sans-serif;
}

.finance-disclaimer {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 12px;
  font-style: italic;
  text-align: center;
}

/* --- 5. WEATHER WIDGET --- */
.orari-weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.weather-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.weather-header {
  background: rgba(255,255,255,0.15);
  padding: 14px 20px;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-header i {
  font-size: 1.3rem;
  color: var(--accent);
}

.weather-body {
  padding: 20px;
}

.weather-loading {
  text-align: center;
  padding: 20px;
  opacity: 0.7;
}

.weather-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.weather-temp {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'Raleway', sans-serif;
  line-height: 1;
}

.weather-desc {
  font-size: 0.95rem;
  opacity: 0.9;
  text-transform: capitalize;
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
}

.weather-details span {
  opacity: 0.8;
}

.weather-details strong {
  opacity: 1;
}

@media (max-width: 768px) {
  .orari-weather-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 6. BOOKING POPUP - uses same preventivo-overlay/box styles --- */
/* Date input styling in popups */
.preventivo-box form input[type="date"] {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--medium-gray);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.preventivo-box form input[type="date"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58,58,58,0.12);
}

/* --- Floating Prenota Button (mobile) --- */
@media (max-width: 768px) {
  .gallery-filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
