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

:root {
  --light: #f7f7f7;
  --dark: #1d3051;
  --orange: #f28d02;
  --red: #e42e21;
  --white: #ffffff;
  --grey-100: #f0f0f0;
  --grey-200: #e0e0e0;
  --grey-600: #555555;
  --shadow-sm: 0 2px 8px rgba(29, 48, 81, .08);
  --shadow-md: 0 6px 24px rgba(29, 48, 81, .12);
  --shadow-lg: 0 12px 40px rgba(29, 48, 81, .18);
  --radius: 12px;
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

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

/* ===== HEADER / NAVBAR ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(29, 48, 81, .06);
  transition: box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, .97);
}

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

.header__logo img {
  height: 52px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav a {
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  position: relative;
  padding: 4px 0;
}

.header__nav a.header__cta {
  padding: 10px 28px;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav a:hover {
  color: var(--orange);
}

.header__cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  transition: background var(--transition), transform var(--transition);
}

.header__cta::after { display: none !important; }

.header__cta:hover {
  background: #c92519;
  transform: translateY(-2px);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 4px;
  transition: var(--transition);
  transform-origin: center;
}

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

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

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

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: .35;
  transition: transform 8s ease;
}

.hero:hover .hero__bg {
  transform: scale(1.04);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(29, 48, 81, .85) 0%,
    rgba(29, 48, 81, .55) 50%,
    rgba(242, 141, 2, .25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 180px 24px 80px;
  max-width: 960px;
}

.hero__badge {
  display: inline-block;
  background: rgba(242, 141, 2, .15);
  border: 1px solid rgba(242, 141, 2, .3);
  color: var(--orange);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.hero h1 span {
  color: var(--orange);
}

.hero__sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, .8);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: .02em;
}

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

.btn--primary:hover {
  background: #d97e02;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(242, 141, 2, .35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .35);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .08);
  transform: translateY(-3px);
}

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

.btn--dark:hover {
  background: #152440;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(29, 48, 81, .3);
}

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

.btn--red:hover {
  background: #c92519;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(228, 46, 33, .35);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 0;
}

.section--grey {
  background: var(--grey-100);
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section__label {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--grey-600);
  max-width: 640px;
  line-height: 1.75;
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, .65);
}

.section__header {
  margin-bottom: 60px;
}

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

.section__header--center .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== ABOUT PREVIEW (Home) ===== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview__img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--grey-200);
}

.about-preview__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-preview__img::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--orange);
  border-radius: var(--radius);
  z-index: -1;
}

.about-preview__badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--dark);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
}

.about-preview__badge strong {
  display: block;
  font-family: 'Clash Display', sans-serif;
  font-size: 2.2rem;
  color: var(--orange);
  line-height: 1;
}

.about-preview__badge span {
  font-size: .85rem;
  opacity: .8;
}

.about-preview__text p {
  color: var(--grey-600);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.about-preview__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.highlight-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(242, 141, 2, .1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight-item span {
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4;
}

/* ===== SERVICE CARDS (Home) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(242, 141, 2, .1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--grey-600);
  font-size: .95rem;
  line-height: 1.65;
}

/* ===== SERVICE DETAIL (servizi.html) ===== */
.service-detail[id] {
  scroll-margin-top: 100px;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--grey-200);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail--reverse {
  direction: rtl;
}

.service-detail--reverse > * {
  direction: ltr;
}

.service-detail__img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--grey-200);
}

.service-detail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail__content h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.service-detail__content p {
  color: var(--grey-600);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.service-detail__list {
  margin-top: 20px;
}

.service-detail__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-weight: 500;
}

.service-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
}

/* ===== STATS BAR ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: 'Clash Display', sans-serif;
  font-size: 2.8rem;
  color: var(--orange);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: .95rem;
  opacity: .75;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--dark) 0%, #2a4470 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242, 141, 2, .15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, .7);
  font-size: 1.1rem;
  margin-bottom: 32px;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ===== ABOUT PAGE ===== */
.page-hero {
  padding: 160px 0 80px;
  background: var(--dark);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, .65);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-content__text p {
  color: var(--grey-600);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-content__text p:first-child {
  font-size: 1.15rem;
  color: var(--dark);
  font-weight: 500;
}

.about-content__img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--grey-200);
  position: sticky;
  top: 110px;
}

.about-content__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}

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

.value-card__icon {
  width: 64px;
  height: 64px;
  background: rgba(242, 141, 2, .1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.value-card__icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--grey-600);
  font-size: .95rem;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-info-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(242, 141, 2, .1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.contact-info-card p,
.contact-info-card a {
  color: var(--grey-600);
  font-size: .95rem;
  line-height: 1.6;
}

.contact-info-card a:hover {
  color: var(--orange);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey-200);
  min-height: 400px;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer__brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.footer__brand p {
  color: rgba(255, 255, 255, .6);
  font-size: .95rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer__title {
  font-family: 'Clash Display', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--orange);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
}

.footer__contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 3px;
}

.footer__contact-item a {
  color: rgba(255, 255, 255, .6);
}

.footer__contact-item a:hover {
  color: var(--orange);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  transition: background var(--transition), transform var(--transition);
}

.footer__social a:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.footer__social svg {
  stroke: rgba(255, 255, 255, .7);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__social a:hover svg {
  stroke: var(--white);
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
  color: rgba(255, 255, 255, .4);
  font-size: .85rem;
}

.footer__bottom a {
  color: rgba(255, 255, 255, .55);
  transition: color var(--transition), text-decoration var(--transition);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-content {
    grid-template-columns: 1fr;
  }
  .about-content__img {
    position: static;
    max-height: 400px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header .container {
    height: 68px;
  }

  .header__logo img {
    height: 42px;
  }

  .hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(29, 48, 81, .97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition), visibility var(--transition);
    z-index: 1050;
  }

  .header__nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  .header__nav a {
    font-size: 1.1rem;
    color: var(--white);
    opacity: .85;
  }

  .header__nav a:hover,
  .header__nav a.active {
    color: var(--orange);
    opacity: 1;
  }

  .header__nav a::after {
    background: var(--orange);
  }

  .header__nav a.header__cta {
    margin-top: 8px;
  }

  .hamburger.open span {
    background: var(--white);
  }

  .hero__content {
    padding: 100px 20px 60px;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-preview__img::after { display: none; }

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

  .service-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-detail--reverse {
    direction: ltr;
  }

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

  .section {
    padding: 64px 0;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .page-hero {
    padding: 130px 0 60px;
  }

  .btn {
    font-size: .9rem;
    padding: 12px 24px;
  }

  .header__nav a.header__cta {
    padding: 10px 24px;
    font-size: .85rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    font-size: .9rem;
    padding: 14px 20px;
    justify-content: center;
  }

  .about-preview__highlights {
    grid-template-columns: 1fr;
  }

  .stat-item strong {
    font-size: 2rem;
  }
}
