:root {
  --brand-blue: rgb(6, 117, 188);
  --brand-navy: #101840;
  --bg-white: #ffffff;
  --bg-card-grey: #eceff3;
  --text-dark: #0d141a;
  --text-body: rgb(54, 55, 57);
  --text-muted: rgb(86, 88, 94);
  --border-input: rgb(184, 192, 204);
  --whatsapp-green: #25d366;
  --error-red: #d32f2f;
  --success-green: #1b5e20;
  --radius-card: 38px;
  --radius-pill: 50px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-title.text-white {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(13, 20, 26, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--brand-blue);
}

.nav-cta {
  background-color: var(--brand-navy);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
}

.nav-cta:hover {
  background-color: var(--brand-blue);
  color: #ffffff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  background-color: var(--bg-white);
  border-top: 1px solid rgba(13, 20, 26, 0.08);
  padding: 16px 24px 24px;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 4px 0;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background-image: url("landing/Sfondo-Landing.jpg?v=2");
  background-size: cover;
  background-position: center right;
  padding: 64px 0;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-left {
  max-width: 680px;
  width: 100%;
  text-align: left;
}

.hero-top-row {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 3vw, 28px);
  margin-bottom: 18px;
}

.hero-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(140px, 24vw, 230px);
}

.hero-brand-icon {
  width: 100%;
  height: auto;
  clip-path: inset(0 0 33% 0);
  margin-bottom: -31%;
}

.hero-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 700;
  color: #2b2d2f;
  line-height: 1;
  letter-spacing: 0.04em;
}

.hero-brand-sub {
  font-size: clamp(0.65rem, 1.15vw, 0.92rem);
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.06em;
  margin-top: 6px;
  text-align: center;
}

.hero-divider {
  width: 3px;
  background-color: var(--brand-blue);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-claims-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 14px);
}

.hero-claim {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.claim-top {
  font-size: clamp(1rem, 2.1vw, 1.65rem);
  font-weight: 500;
  color: #1f2226;
  letter-spacing: 0.02em;
}

.claim-bottom {
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: -0.01em;
}

.hero-quote {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 500;
  color: #1f2226;
  margin-bottom: 16px;
}

.quote-mark {
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 1.25em;
  margin: 0 3px;
}

.quote-script {
  font-family: 'Pacifico', cursive;
  color: var(--brand-blue);
  font-weight: 400;
  font-size: 1.15em;
}

.hero-tagline-wrap {
  display: inline-block;
  margin-bottom: 28px;
}

.hero-tagline {
  font-size: clamp(0.82rem, 1.5vw, 1.12rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  margin-bottom: 6px;
}

.tricolore-bar {
  display: flex;
  height: 5px;
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tri-green {
  flex: 1;
  background-color: #009246;
}

.tri-white {
  flex: 1;
  background-color: #ffffff;
}

.tri-red {
  flex: 1;
  background-color: #ce2b37;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

.btn-navy {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.btn-navy:hover {
  background-color: var(--brand-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #1ebe5b;
}

.btn-whatsapp-dark {
  margin-top: 24px;
}

.btn-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.btn-outline-light {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: var(--brand-navy);
}

.btn-submit {
  width: 100%;
  background-color: var(--brand-navy);
  color: #ffffff;
  padding: 15px 32px;
}

.btn-submit:hover {
  background-color: var(--brand-blue);
}

/* Galleria Carousel */
.galleria-section {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.carousel {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(16, 24, 64, 0.12);
  background-color: #ffffff;
  border: 4px solid #ffffff;
}

.carousel-counter {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  background-color: rgba(16, 24, 64, 0.78);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.carousel-slide:hover img {
  transform: scale(1.02);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: background-color var(--transition), transform var(--transition);
}

.carousel-btn:hover {
  background-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.thumb-btn {
  border: 3px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  opacity: 0.62;
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.thumb-btn.active {
  opacity: 1;
  border-color: var(--brand-blue);
  box-shadow: 0 8px 18px rgba(6, 117, 188, 0.25);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(13, 20, 26, 0.92);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 94vw;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background-color var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Servizi Section */
.servizi-section {
  background-color: var(--brand-blue);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.service-card-wide {
  grid-column: 1 / -1;
  max-width: 680px;
  margin: 0 auto;
}

.service-icon-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon {
  max-height: 76px;
  width: auto;
  object-fit: contain;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Chi Siamo / Storia */
.storia-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.storia-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.storia-content p {
  margin-bottom: 18px;
  font-size: 1.03rem;
}

.testimonial-box {
  margin-top: 28px;
  padding: 24px 28px;
  background-color: var(--bg-card-grey);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 16px 16px 0;
}

.testimonial-quote {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px !important;
}

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

.storia-image {
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(13, 20, 26, 0.14);
  width: 100%;
  object-fit: cover;
}

/* Recensioni Google Section */
.recensioni-section {
  background-color: var(--brand-blue);
  padding: 72px 0;
}

.reviews-header-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 20px 28px;
  max-width: 920px;
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.google-brand {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.g-blue { color: #4285f4; }
.g-red { color: #ea4335; }
.g-yellow { color: #fbbc05; }
.g-green { color: #34a853; }

.reviews-brand-label {
  color: var(--text-dark);
  font-size: 1.15rem;
  font-weight: 500;
  margin-left: 8px;
}

.reviews-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-score {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-dark);
}

.reviews-stars,
.review-stars {
  color: #4285f4;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.reviews-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.btn-leave-review {
  background-color: #1a73e8;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color var(--transition);
  white-space: nowrap;
}

.btn-leave-review:hover {
  background-color: #1558b0;
}

.reviews-carousel {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-viewport {
  overflow: hidden;
  width: 100%;
}

.reviews-track {
  display: flex;
  transition: transform 0.4s ease;
}

.review-card {
  position: relative;
  min-width: 100%;
  background-color: #ffffff;
  border-radius: 14px;
  padding: 36px 40px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.review-date {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.review-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.review-author {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.review-stars {
  margin-bottom: 16px;
}

.review-text {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto;
}

.reviews-nav {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.15rem;
  color: var(--text-dark);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition), background-color var(--transition);
}

.reviews-nav:hover {
  background-color: #ffffff;
  transform: scale(1.08);
}

@media (max-width: 600px) {
  .reviews-header-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-card {
    padding: 44px 20px 28px;
  }
}

/* Contatti Section */
.contatti-section {
  background-color: #f8fafc;
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contatti-info .section-title {
  text-align: left;
}

.contatti-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color var(--transition);
}

.contact-value:hover {
  color: var(--brand-blue);
}

.contatti-form-card {
  background-color: var(--bg-card-grey);
  padding: 40px;
  border-radius: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.required {
  color: var(--error-red);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-input);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: #ffffff;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-dark);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--error-red);
}

.error-msg {
  display: block;
  font-size: 0.82rem;
  color: var(--error-red);
  margin-top: 6px;
  min-height: 18px;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background-color: #e8f5e9;
  color: var(--success-green);
  font-weight: 500;
  text-align: center;
}

.form-success.visible {
  display: block;
}

/* Footer */
.site-footer {
  background-color: var(--brand-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 28px 0;
  text-align: center;
  font-size: 0.92rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--whatsapp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.08);
}

.floating-whatsapp img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Scroll Fade Animation */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .storia-grid,
  .contatti-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contatti-form-card {
    padding: 28px 20px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
