/* =========================
   Global / Variables
========================= */
:root {
  --nav-h: 96px; /* header fixed: logo h-20 (80px) + padding => ~96px */
}

/* =========================
   HERO (Home)
========================= */
:root { --nav-h: 96px; }

.hero-section{
  position: relative;
  background-color: #05070a;

  /* sfondo DESKTOP */
  background-image: url("../img/intro.jpg");
  background-size: cover;
  background-position: left top;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: var(--nav-h);
  padding-bottom: 2rem;
}

.hero-content{
  transform: none;
  position: relative;
  z-index: 10;
}

/* MOBILE: usa immagine mobile */
@media (max-width: 767px){
  .hero-section{
    background-image: url("../img/intro_S.jpg");
    background-position: center 20%;

    align-items: flex-start;
    min-height: 100vh;
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 24px;
  }
}




/* =========================
   SERVICE CARDS
========================= */
.service-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #f3f4f6;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card .card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
}

.service-card .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(10, 20, 30, 0.75);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card .card-content {
  position: relative;
  padding: 2rem;
  z-index: 2;
}

.service-card .card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-card .icon-wrapper {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1289ca;
  color: #fff;
  font-size: 1.75rem;
  transition: background-color 0.4s ease;
}

.service-card .card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1289ca;
  transition: color 0.4s ease;
}

.service-card .card-content p,
.service-card .card-content ul {
  transition: color 0.4s ease;
}

.service-card .card-content ul {
  margin-top: 1rem;
  list-style: none;
  padding-left: 0;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 40px -10px rgba(18, 137, 202, 0.3);
}

.service-card:hover .card-image,
.service-card:hover .card-image::after {
  opacity: 1;
}

.service-card:hover .card-image {
  transform: scale(1);
}

.service-card:hover .icon-wrapper {
  background-color: #dc8518;
}

.service-card:hover .card-content h3 {
  color: #dc8518;
}

.service-card:hover .card-content p,
.service-card:hover .card-content ul {
  color: #f3f4f6;
}

.service-card:hover .card-content ul i {
  color: #f3f4f6;
}

/* =========================
   NAV LINKS
========================= */
.nav-link {
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease-out;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #dc8518;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: #dc8518;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
  background-color: #1289ca;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0f70a1;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #dc8518;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #b86e14;
  transform: translateY(-2px);
}

/* =========================
   AOS (fade-up override)
   Nota: questo sovrascrive transform per tutti i [data-aos="fade-up"]
========================= */
[data-aos="fade-up"] {
  transform: translateY(150px);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

/* =========================
   FOOTER
========================= */
.footer-link {
  transition-property: color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.footer-link:hover,
footer h4 {
  color: #dc8518;
}
