/* ===================================
   ROSSI GRONDE - Landing Page Styles
   =================================== */

:root {
  --primary: #b71c1c;
  --primary-dark: #7f0000;
  --primary-light: #f05545;
  --secondary: #263238;
  --secondary-light: #4f5b62;
  --accent: #d32f2f;
  --light-bg: #f5f5f5;
  --dark-bg: #1a1a2e;
  --text-dark: #212121;
  --text-light: #ffffff;
  --text-muted: #757575;
  --border-color: #e0e0e0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  line-height: 1.3;
}

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

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

section {
  padding: 80px 0;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  color: var(--secondary);
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* === TOP BAR === */
.top-bar {
  background: #191919;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 0;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031;
}

.top-bar-info span {
  display: inline-flex;
  align-items: center;
}

.top-bar-info a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.top-bar-info a:hover {
  color: #fff;
}

.top-bar-info i {
  color: var(--primary);
}

/* === NAVBAR === */
.navbar {
  padding: 0;
  transition: var(--transition);
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  height: 80px;
  top: 36px;
}

.navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  height: 70px;
}

.navbar > .container {
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-brand img {
  height: 60px;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
  height: 50px;
}

.navbar-nav .nav-link {
  color: var(--secondary);
  font-weight: 500;
  padding: 0 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: var(--transition);
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 1;
}

.navbar-nav {
  height: 100%;
}

.navbar-nav .nav-item {
  display: flex;
  align-items: stretch;
  height: 100%;
  border-right: 1px solid #d0d0d0;
}

.navbar-nav .nav-item:first-child {
  border-left: 1px solid #d0d0d0;
}

.navbar.scrolled .nav-link {
  color: var(--secondary);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--primary);
  color: #fff;
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(38,50,56,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(38,50,56,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === PAGE HEADER (gallery e pagine interne) === */
.page-header {
  position: relative;
  width: 100%;
  padding: 175px 0 50px; /* top: lascia spazio alla navbar fissa */
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(127,0,0,0.72) 0%, rgba(26,26,46,0.65) 100%);
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-header-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.1;
  text-transform: uppercase;
}

.page-header-content h1 span {
  color: var(--primary-light);
}

/* === HERO SLIDER === */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
  margin-top: 116px; /* top-bar 36px + navbar 80px */
}

.hero-slider {
  width: 100%;
}

.hero-slider .slick-list,
.hero-slider .slick-track {
  height: 100%;
}

.hero-slide {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide-bg img,
.hero-slide-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ken Burns Effect */
.hero-slide-bg.kenburns img {
  animation: kenburns 10s ease-out forwards;
  transform-origin: center center;
}

.slick-slide:not(.slick-active) .hero-slide-bg.kenburns img {
  animation: none;
  transform: scale(1);
}

@keyframes kenburns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(183, 28, 28, 0.4));
  z-index: 1;
}

.hero-slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-slide-content h1 {
  font-size: 4.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 2px;
}

.hero-slide-content h1 span {
  color: var(--primary-light);
}

.hero-slide-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Video slide */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slick dots - bottom right corner */
.hero-slider .slick-dots {
  bottom: 30px;
  top: auto;
  transform: none;
  right: 20px;
  left: auto;
  width: auto;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.hero-slider .slick-dots li {
  margin: 0;
  width: 14px;
  height: 14px;
}

.hero-slider .slick-dots li button:before {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.hero-slider .slick-dots li.slick-active button:before {
  color: #fff;
  font-size: 12px;
}

/* Slick arrows - square buttons on edges */
.hero-slider .slick-prev,
.hero-slider .slick-next {
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3;
  transition: var(--transition);
}

.hero-slider .slick-prev:hover,
.hero-slider .slick-next:hover {
  background: var(--primary);
}

.hero-slider .slick-prev {
  left: 0;
  border-radius: 0;
}

.hero-slider .slick-next {
  right: 0;
  border-radius: 0;
}

.hero-slider .slick-prev:before,
.hero-slider .slick-next:before {
  font-family: 'bootstrap-icons';
  font-size: 1.8rem;
  opacity: 1;
  color: #fff;
}

.hero-slider .slick-prev:before {
  content: '\F284';
}

.hero-slider .slick-next:before {
  content: '\F285';
}

/* Scroll down indicator - center bottom */
.hero-scroll-indicator {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: #fff;
  cursor: pointer;
}

.hero-scroll-indicator .scroll-icon {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  margin: 0 auto;
  position: relative;
}

.hero-scroll-indicator .scroll-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: #fff;
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    top: 8px;
    opacity: 1;
  }
  50% {
    top: 24px;
    opacity: 0.3;
  }
}

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(183, 28, 28, 0.4);
}

.btn-outline-custom {
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 34px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-block;
}

.btn-outline-custom:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
}

/* === CHI SIAMO === */
.about-section {
  background: #fff;
}

.about-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 15px 25px;
  border-radius: 10px;
  text-align: center;
}

.about-badge .number {
  font-size: 2rem;
  font-weight: 800;
  display: block;
}

.about-badge .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-features {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.about-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.about-features li i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* === SERVIZI === */
.services-section {
  background: #2a2a2a;
}

.services-section .section-title,
.services-section .section-subtitle {
  color: #fff;
}

.services-grid {
  --bs-gutter-x: 1px;
  --bs-gutter-y: 1px;
}

.service-card {
  background: #fff;
  border-radius: 0;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  box-shadow: none;
  height: 100%;
  border: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: none;
  border: none;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon i {
  font-size: 2rem;
  color: #fff;
}

.service-card h4 {
  margin-bottom: 1rem;
  color: var(--secondary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* === BANNER SCOPRI DI PIU === */
.cta-banner {
  background: linear-gradient(135deg, rgba(38, 50, 56, 0.85), rgba(127, 0, 0, 0.75)),
              url('../img/bg1.JPG') center/cover no-repeat fixed;
  padding: 80px 0;
  text-align: center;
  position: relative;
  background-attachment: fixed;
}

.cta-banner h2 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === MARCHI === */
.brands-section {
  background: #fff;
  padding: 60px 0;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 40px;
  background: var(--light-bg);
  border-radius: 12px;
  transition: var(--transition);
}

.brand-item:hover {
  box-shadow: var(--shadow);
  transform: scale(1.05);
}

.brand-item h3 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}

/* === GALLERY === */
.gallery-section {
  background: var(--light-bg);
  padding: 80px 0 0;
}

.gallery-section .container-fluid {
  background: #000;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(183, 28, 28, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2.5rem;
  color: #fff;
}

/* === CONTATTI === */
.contact-section {
  background: #fff;
}

.contact-info-card {
  background: var(--light-bg);
  border-radius: 16px;
  padding: 40px 30px;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon i {
  color: #fff;
  font-size: 1.2rem;
}

.contact-item h5 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--secondary);
}

.contact-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* === ORARI === */
.hours-card {
  background: var(--secondary);
  border-radius: 16px;
  padding: 30px;
  color: #fff;
  margin-top: 25px;
}

.hours-card h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.hours-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-card ul li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.hours-card ul li:last-child {
  border-bottom: none;
}

/* === FOOTER === */
.footer {
  background: #191919;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 20px 0;
  overflow: hidden;
}

.footer p {
  font-size: 11px;
}

.footer h6 {
  font-size: 1.2rem;
}

.footer table {
  width: 100%;
  border: 1px solid #e2e2e2;
  border-spacing: 0;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer tr:nth-child(even) {
  background: rgb(243 243 243 / 10%);
}

.footer tfoot {
  background: #e9e9e9;
  font-weight: bold;
}

.footer th {
  text-transform: uppercase;
  border-right: 1px solid #e2e2e2;
  background: #f5f5f5;
  border-bottom: 2px #777 solid;
}

.footer td,
.footer caption {
  border-right: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
}

.footer tr.even td {
  background: #f9f9f9;
}

.footer th,
.footer td,
.footer caption {
  padding: 10px;
}

.footer .table-style2 th {
  border-right-color: #fff;
  border-bottom-color: #5c5c5c;
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
  font-size: 0.85rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.footer-bottom p {
  margin-bottom: 4px;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--primary-light);
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(183, 28, 28, 0.4);
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* === LIGHTBOX === */
.lightbox-modal .modal-dialog {
  max-width: 90vw;
}

.lightbox-modal .modal-content {
  background: transparent;
  border: none;
}

.lightbox-modal .modal-body {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-modal .modal-body img {
  max-height: 85vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-modal .btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  filter: invert(1);
  opacity: 0.8;
}

@media (min-width: 992px) {
	.navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1.2rem;
        padding-left:  1.2rem;
    }
}
/* === RESPONSIVE === */
@media (max-width: 992px) {
	.navbar-collapse.h-100{
		height: auto !important;
	}
	.navbar-collapse .nav-link {
        width: 100%;
    }
}
@media (max-width: 991.98px) {
	
  .hero-slide-content h1 {
    font-size: 2.5rem;
  }

  .hero-slide-content p {
    font-size: 1.1rem;
  }

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

  section {
    padding: 60px 0;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: var(--shadow);
  }

  .navbar-collapse .nav-link {
    color: var(--secondary) !important;
    padding: 12px 20px !important;
    height: auto !important;
  }

  .navbar-collapse .nav-link.active,
  .navbar-collapse .nav-link:hover {
    background: var(--primary) !important;
    color: #fff !important;
  }

  .navbar-nav .nav-item {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    height: auto;
  }

  .navbar-nav .nav-item:first-child {
    border-left: none;
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .about-img-wrapper {
    margin-bottom: 2rem;
  }

  .about-img-wrapper img {
    height: 300px;
  }

  .cta-banner h2 {
    font-size: 2rem;
  }

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

@media (max-width: 767.98px) {
  /* Top bar tablet/mobile */
  .top-bar {
    padding: 6px 0;
    font-size: 0.75rem;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }

  .top-bar-info {
    justify-content: center;
  }

  .top-bar-info a.d-none {
    display: none !important;
  }

  .navbar {
    top: 50px;
  }

  .hero {
    margin-top: 130px;
  }

  .hero-slide {
    height: 60vh;
  }

  .hero-slide-content {
    padding-top: 40px;
  }

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

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

  .hero-slider .slick-prev,
  .hero-slider .slick-next {
    width: 50px;
    height: 50px;
  }

  .hero-slider .slick-prev:before,
  .hero-slider .slick-next:before {
    font-size: 1.3rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .service-card {
    padding: 30px 20px;
  }

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

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

  .map-wrapper {
    min-height: 300px;
  }

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

  .brand-item h3 {
    font-size: 1.4rem;
  }

  .cta-banner {
    padding: 60px 0;
    background-attachment: scroll;
  }

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

  .btn-primary-custom,
  .btn-outline-custom {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  /* Footer mobile */
  .footer {
    text-align: center;
    overflow: hidden;
  }

  .footer table {
    font-size: 10px;
    table-layout: fixed;
    word-wrap: break-word;
  }

  .footer th,
  .footer td,
  .footer caption {
    padding: 6px 4px;
  }

  .footer-bottom {
    padding: 20px 15px;
    font-size: 0.78rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .footer-bottom p {
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .footer-bottom a {
    word-break: break-all;
  }
}

@media (max-width: 575.98px) {
  /* Top bar small mobile */
  .top-bar {
    font-size: 0.7rem;
    padding: 5px 0;
  }

  .top-bar .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-slide-content h1 {
    font-size: 1.5rem;
  }

  .hero-slide-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-slide {
    height: 55vh;
  }

  .hero-slider .slick-prev,
  .hero-slider .slick-next {
    width: 40px;
    height: 40px;
  }

  .hero-slider .slick-prev:before,
  .hero-slider .slick-next:before {
    font-size: 1.1rem;
  }

  .about-badge {
    bottom: 10px;
    right: 10px;
    padding: 10px 15px;
  }

  .about-badge .number {
    font-size: 1.5rem;
  }

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

  .hours-card ul li {
    flex-direction: column;
    gap: 2px;
  }

  /* Footer small mobile */
  .footer-bottom {
    padding: 15px 10px;
    font-size: 0.72rem;
    line-height: 1.9;
  }

  .footer-bottom a {
    display: inline;
    word-break: break-all;
  }

  .footer table {
    font-size: 9px;
  }

  .footer th,
  .footer td,
  .footer caption {
    padding: 4px 3px;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    padding: 10px 22px;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .contact-icon i {
    font-size: 1rem;
  }
}



.pagination-red-black .page-link {
  color: black;
  border: 1px solid black;
  background-color: white;
	border-radius: 0px !important;
}

.pagination-red-black .page-link:hover,
.pagination-red-black .page-link:focus {
  color: black;
  background-color: #f8f9fa;
  border-color: black;
}

.pagination-red-black .page-item.active .page-link {
  color: white;
  background-color: red;
  border-color: black;
  font-weight: bold;
}

.pagination-red-black .page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
}


:root {
	--coloreVociCategorie: #014478;
	--coloreVociCategorieHover: #87a6bf;
	--coloreVociCategorieActive: #63829b;
	--coloreVociSottocategorie: #2d7ebd;
	--coloreVociSottocategorieHover: #3d4850;
	--coloreVociSottocategorieActive: #1a5b8d;
}


.menuDropDown{
		display: none;
		width: 100%;
		height: 38px;
		color: #555;
		font-size: 14px;
		font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
		outline: none;
		cursor: pointer;
		-webkit-transition: all 250ms ease;
		-moz-transition: all 250ms ease;
		-ms-transition: all 250ms ease;
		-o-transition: all 250ms ease;
		transition: all 250ms ease;
		border: 1px solid #cccccc;
		padding: 0.5rem;	
	}
	.side_menu{
		/*background-color: #EFCBBF;*/
		display: block;
		font-family: sans-serif;    margin-bottom: 0 !important;
	}

	.side_menu, .side_menu ul{
	  list-style-type: none;  
	  margin: 0;
	  padding: 0;  
	}

	.side_menu ul{
		 /*background-color: rgba(0, 0, 0, 0.2);*/
	}

	  .side_menu > li{
	    font-size: 18px;
	    font-weight: bold;
		padding: 0 !important;
	  }
	  .side_menu > li.active{
	  	
	  }
	.side_menu > li li{
		padding: 0 0 0 10px !important;
	}
	    .side_menu a{
			font-family: 'futura-pt', 'Source Sans Pro', Helvetica, Arial, sans-serif;
			display: block;
			position: relative;     
			padding: 6px 20px 6px 10px; 
			color: var(--coloreVociCategorie);
			text-decoration: none;
	    }
		
		.side_menu > li > a{
			color: var(--coloreVociCategorie);
		}
		.side_menu > li.active > a{
			color: var(--coloreVociCategorieActive);
		}
		
	    .side_menu a:hover{
	      color: var(--coloreVociCategorieHover);
	      text-decoration: none;
	    }

		.side_menu > li.active > a:hover{
			opacity: 0.8;
		}



	  .has_child > a:after{
	    content: "\f101";
	    font-family: "FontAwesome";
	    display: block;
	    position: absolute;
	    right: 5px;
	    top: 5px;
	  }

	  .has_child.opened > a:after{
	   content: "\f103"; 
	  }

	  .side_menu ul{
	    display: none;
	  }

	  li.opened > ul{
	    display: block;
	  }

	  .submenu{
	    font-size: 90%;
	  }

	    .submenu > li > a{
	      padding-left: 20px;
	    }


	    .submenu a{
	      color: var(--coloreVociSottocategorie) !important;
	    }
 		.submenu li.active a{
	      color: var(--coloreVociSottocategorieActive) !important;
	    }
	    .side_menu .submenu li > a:hover,
	    .side_menu .submenu li > a:active,
	    .side_menu .submenu li > a:hover:active{
	      color: var(--coloreVociSottocategorieHover) !important;
	    }

	   


	  .side_menu li.active > a,
	  .side_menu li.active > a:hover,
	  .side_menu li.active > a:active,
	  .side_menu li.active > a:hover:active{
	    color: var(--coloreVociCategorieActive) !important;
	    /*background-color: #fff !important;*/
	    text-decoration: underline;
	    font-weight: bold;
	  }
	  .submenu li.active > a:hover{
	  	opacity: 0.8;
	  }
	@media only screen and (max-width: 768px)
	{
			.menuDropDown{
				display: block;
			}
			.side_menu{
				display:none;
			}
	}


/* =====================================================
   GALLERY ITEM – variante .item (galleryorig.php)
   Stesse proporzioni quadrate di .gallery-item,
   con <a> che avvolge img + .gallery-overlay
   ===================================================== */

.gallery-grid .item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

/* Il primo <a> occupa tutta la cella */
.gallery-grid .item > a:first-of-type {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-grid .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.gallery-grid .item:hover img {
  transform: scale(1.08);
}

.gallery-grid .item:hover .gallery-overlay {
  opacity: 1;
}


:root {
	--coloreVociCategorie: #b71c1c;
	--coloreVociCategorieHover: #ffbab3;
	--coloreVociCategorieActive: #ffbab3;
	--coloreVociSottocategorie: #f05545;
	--coloreVociSottocategorieHover: #ffbab3;
	--coloreVociSottocategorieActive: #ffbab3;
}


.menuDropDown{
		display: none;
		width: 100%;
		height: 38px;
		color: #555;
		font-size: 14px;
		font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
		outline: none;
		cursor: pointer;
		-webkit-transition: all 250ms ease;
		-moz-transition: all 250ms ease;
		-ms-transition: all 250ms ease;
		-o-transition: all 250ms ease;
		transition: all 250ms ease;
		border: 1px solid #cccccc;
		padding: 0.5rem;	
	margin-bottom: 10px;
	}
	.side_menu{
		/*background-color: #EFCBBF;*/
		display: block;
		font-family: sans-serif;    margin-bottom: 0 !important;
		padding: 30px !important;
	}

	.side_menu, .side_menu ul{
	  list-style-type: none;  
	  margin: 0;
	  padding: 0;  
	}

	.side_menu ul{
		 /*background-color: rgba(0, 0, 0, 0.2);*/
	}

	  .side_menu > li{
	    font-size: 18px;
	    font-weight: bold;
		padding: 0 !important;
	  }
	  .side_menu > li.active{
	  	
	  }
	.side_menu > li li{
		padding: 0 0 0 10px !important;
	}
	    .side_menu a{
			font-family: 'futura-pt', 'Source Sans Pro', Helvetica, Arial, sans-serif;
			display: block;
			position: relative;     
			padding: 6px 20px 6px 10px; 
			color: var(--coloreVociCategorie);
			text-decoration: none;
	    }
		
		.side_menu > li > a{
			color: var(--coloreVociCategorie);
		}
		.side_menu > li.active > a{
			color: var(--coloreVociCategorieActive);
		}
		
	    .side_menu a:hover{
	      color: var(--coloreVociCategorieHover);
	      text-decoration: none;
	    }

		.side_menu > li.active > a:hover{
			opacity: 0.8;
		}



	  .has_child > a:after{
	    content: "\f101";
	    font-family: "FontAwesome";
	    display: block;
	    position: absolute;
	    right: 5px;
	    top: 5px;
	  }

	  .has_child.opened > a:after{
	   content: "\f103"; 
	  }

	  .side_menu ul{
	    display: none;
	  }

	  li.opened > ul{
	    display: block;
	  }

	  .submenu{
	    font-size: 90%;
	  }

	    .submenu > li > a{
	      padding-left: 20px;
	    }


	    .submenu a{
	      color: var(--coloreVociSottocategorie) !important;
	    }
 		.submenu li.active a{
	      color: var(--coloreVociSottocategorieActive) !important;
	    }
	    .side_menu .submenu li > a:hover,
	    .side_menu .submenu li > a:active,
	    .side_menu .submenu li > a:hover:active{
	      color: var(--coloreVociSottocategorieHover) !important;
	    }

	   


	  .side_menu li.active > a,
	  .side_menu li.active > a:hover,
	  .side_menu li.active > a:active,
	  .side_menu li.active > a:hover:active{
	    color: var(--coloreVociCategorieActive) !important;
	    /*background-color: #fff !important;*/
	    text-decoration: underline;
	    font-weight: bold;
	  }
	  .submenu li.active > a:hover{
	  	opacity: 0.8;
	  }
	@media only screen and (max-width: 768px)
	{
			.menuDropDown{
				display: block;
			}
			.side_menu{
				display:none;
			}
	}

.credits_link{
  color: #38B5E6 !important;
  font-weight: 700;
  font-family: sans-serif;
}

.credits_link:hover{
  color: #fff !important;
}

  .credits_link:before{
    content: "";
    vertical-align: middle;
    width:16px;
    height: 16px;
    display: inline-block;
    margin-right: 5px;
    margin-left: 5px;
    background-image: url(https://www.clion.it/favicon-96x96.png);
    background-repeat: no-repeat;
    -webkit-background-size: contain;
    background-size: contain;
    background-position: center center;

    transition: all 450ms ease;
  }

    .credits_link:hover:before{
      transform: scale(1.5) rotateZ(360deg) rotateY(360deg);
    }