* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-color: #1E40AF;        
  --secondary-color: #3B82F6;      
  --accent-color: #DBEAFE;         
  --box-bg: #F8FAFC;               
  --white: #ffffff;
  --text-dark: #1E293B;            
  --text-light: #64748B;           
  --shadow: 0 2px 10px rgba(30, 64, 175, 0.08);
  --shadow-hover: 0 6px 24px rgba(30, 64, 175, 0.17);
  --gold: #60A5FA;                 
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--box-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo and Header */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--primary-color);
}

.btn-contact {
  background: var(--primary-color);
  color: var(--white) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: background 0.3s;
  margin-left: 10px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.btn-contact:hover {
  background: #1E3A8A;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 5rem 20px 4rem 20px;
  text-align: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #1E3A8A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* Sections */
.section {
  padding: 4rem 20px;
}

.bg-light {
  background: var(--white);
}

.section-title {
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--white);
  border: 2px solid var(--accent-color);      
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.14); 
  padding: 1.6rem 1.2rem;
  border-radius: 18px;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.20);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 0.6rem;
  color: var(--secondary-color);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}


/* MATERIALS CAROUSEL */
.materials-section {
  background: var(--accent-color);
}

.materials-carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(30,64,175,0.3) transparent;
  padding: 1rem 0;
}

.materials-track {
  display: flex;
  gap: 1.25rem;
  padding: 0 4rem;
}

.material-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: var(--white);
  border: 2px solid var(--accent-color);
  box-shadow: 0 4px 16px rgba(59,130,246,0.12);
  border-radius: 18px;
  padding: 1.6rem 1.3rem;
  transition: all 0.3s ease;
}

.material-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(59,130,246,0.22);
  border-color: var(--secondary-color);
}

/* Scrollbar custom */
.materials-carousel::-webkit-scrollbar {
  height: 6px;
}
.materials-carousel::-webkit-scrollbar-track {
  background: transparent;
}
.materials-carousel::-webkit-scrollbar-thumb {
  background: rgba(30,64,175,0.4);
  border-radius: 3px;
}

/* BOX CAROUSEL */
#box .box-track {
  display: flex;
  gap: 1.25rem;
  padding: 0 4rem;
}

.box-carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(30,64,175,0.3) transparent;
  padding: 1rem 0;
}

.box-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: var(--box-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  padding: 1.8rem 1.2rem;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.box-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.box-card img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

/* Scrollbar box */
.box-carousel::-webkit-scrollbar {
  height: 6px;
}
.box-carousel::-webkit-scrollbar-track {
  background: transparent;
}
.box-carousel::-webkit-scrollbar-thumb {
  background: rgba(30,64,175,0.4);
  border-radius: 3px;
}

/* RESPONSIVE BOX */
@media (min-width: 1200px) {
  .box-carousel {
    overflow: visible !important;  /* No scrollbar */
    scroll-snap-type: none !important;
  }
  
  #box .box-track {
    padding: 0 !important;
    gap: 1.75rem;
    justify-content: center; 
  }
  
  .box-card {
    flex: 1; 
    max-width: 300px; 
    scroll-snap-align: none !important;
  }
}

@media (max-width: 768px) {
  #box .box-track {
    padding: 0 3rem;
    gap: 1rem;
  }
  
  .box-card {
    padding: 1.4rem 1.1rem;
  }
  
  .box-card img {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  #box .box-track {
    padding: 0 2.5rem;
  }
}


/* GALLERY SECTION */
.gallery-section {
  background: var(--white);
}

.gallery-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(30,64,175,0.3) var(--white);
}

.gallery-slider::-webkit-scrollbar {
  height: 6px;
}

.gallery-slider::-webkit-scrollbar-track {
  background: var(--white);
}

.gallery-slider::-webkit-scrollbar-thumb {
  background: rgba(30,64,175,0.3);
  border-radius: 3px;
}

.gallery-card {
  flex: 0 0 380px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(59,130,246,0.12);
  transition: all 0.4s ease;
  scroll-snap-align: start;
}

.gallery-card:hover {
  box-shadow: 0 16px 40px rgba(59,130,246,0.20);
  transform: translateY(-8px);
}

.gallery-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

/* Location Section */
.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.location-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.location-info p {
  margin-bottom: 1rem;
}

.location-info a {
  color: var(--primary-color);
  text-decoration: none;
}

.hours,
.directions {
  margin-top: 2rem;
}

.hours h4,
.directions h4 {
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.location-map iframe {
  width: 100%;
  height: 330px;
  border-radius: 9px;
  box-shadow: var(--shadow);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white);
  text-align: center;
}

.cta-section h2,
.cta-section p {
  color: var(--white);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

/* Logo Testo LCV */
.logo-text {
  display: inline-flex;
  align-items: center;
  height: 54px;
  text-decoration: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo-text {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
  text-shadow: none;
  transition: all 0.3s ease;
}

/* Responsive logo testo */
@media (max-width: 768px) {
  .logo-text {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.7rem;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .location-content {
    grid-template-columns: 1fr;
  }
  .gallery-card { flex: 0 0 320px; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 240px;
    height: calc(100vh - 65px);
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: right 0.3s;
    align-items: flex-start;
  }

  .nav.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 600px) {
  .gallery-card { 
    flex: 0 0 85vw; 
    min-width: 280px;
  }
  
  .gallery-card img { height: 280px; }
}

/* CONTACT PAGE */
.hero-contact {
  padding: 6rem 20px 5rem;
  text-align: center;
}

.hero-contact h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-section {
  background: var(--box-bg);
  padding: 5rem 20px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(59,130,246,0.08);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(59,130,246,0.12);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(30,64,175,0.1);
}

.error-message {
  color: #EF4444;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  display: block;
  min-height: 1.2em;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Responsive Contact */
@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  .contact-form {
    padding: 2rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

/* FORM SUCCESS */
.success-message {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-message h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.success-message p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Success */
@media (max-width: 600px) {
  .success-actions {
    flex-direction: column;
  }
}


/* CHI SIAMO */
#chi-siamo {
  text-align: center;
}

#chi-siamo .container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#chi-siamo p {
  text-align: justify;
  line-height: 1.7;
  font-size: 1.05rem;
}

#chi-siamo p:last-child {
  font-weight: 600;
  font-style: italic;
  margin-top: 1.5rem;
}

#chi-siamo a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

#chi-siamo a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* HCAPTCHA */
.h-captcha {
  margin: 1rem 0 0.5rem 0;
}

.h-captcha .h-captcha-logo {
  display: block !important;
}

#hcaptcha-error {
  color: #EF4444;
  font-size: 0.85rem;
  display: block;
}

/* Responsive hCaptcha */
@media (max-width: 480px) {
  .h-captcha {
    transform: scale(0.85);
    transform-origin: left top;
    margin-left: -12px;
  }
}


/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(59,130,246,0.15);
  border-top: 3px solid var(--primary-color);
  z-index: 3000;
  padding: 1.5rem 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin: 0 0 1rem 0;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.cookie-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-buttons .btn-primary,
.cookie-buttons .btn-secondary {
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.cookie-modal {
  background: var(--white);
  max-width: 500px;
  width: 90%;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(59,130,246,0.3);
  overflow: hidden;
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--accent-color);
}

.cookie-modal-header h3 {
  color: var(--primary-color);
  margin: 0;
}

.cookie-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s;
}

.cookie-close:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

.cookie-options {
  padding: 1.5rem 2rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--accent-color);
  cursor: pointer;
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--primary-color);
}

.cookie-option span {
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

.cookie-option small {
  display: block;
  color: var(--text-light);
  font-size: 0.85rem;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--accent-color);
  justify-content: flex-end;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-buttons .btn-primary,
  .cookie-buttons .btn-secondary {
    width: 100%;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
}

/* PRIVACY PAGE */
.hero-privacy {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 6rem 20px 5rem;
}

.hero-privacy h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.privacy-section {
  background: var(--box-bg);
  padding: 5rem 20px;
}

.privacy-content {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-content h2 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin: 2.5rem 0 1.5rem 0;
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.service-badge {
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 1rem;
}

.privacy-services {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(59,130,246,0.08);
}

.service-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.service-item a:hover {
  text-decoration: underline;
}

.privacy-footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--accent-color);
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  .privacy-content {
    padding: 0 1rem;
  }
}
