body {
  }

/* RESET BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color:darkgreen;
}

/* COLORI */
:root {
    --darkgreen: darkgreen;
    --light-gray: #f5f5f5;
}

/* HEADER */
header {
    background: white;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* MENU */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--darkgreen);
    font-weight: 500;
    padding: 10px;
}

/* SUBMENU */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.submenu li {
    width: 100%;
}

.submenu li a {
    display: block;
    padding: 10px;
    color: var(--darkgreen);
}

/* SUBMENU LIVELLO 2 */
.submenu .submenu {
    left: 100%;
    top: 0;
}

.has-submenu:hover > .submenu {
    display: block;
}

/* MENU MOBILE (base) */
.mobile-menu-btn {
    display: none;
}

/* MENU LINGUA */
.language-menu {
    position: relative;
}

.language-btn {
    background: white;
    border: 1px solid var(--darkgreen);
    color: var(--darkgreen);
    padding: 8px 14px;
    cursor: pointer;
}

.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: white;
    list-style: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 999;
}

.language-dropdown li a {
    display: block;
    padding: 10px;
    color: var(--darkgreen);
    text-decoration: none;
}

.language-menu:hover .language-dropdown {
    display: block;
}

/* HERO */
.hero {
    height: 80vh;
    background: url("/img/sfondo.png") center/cover no-repeat;
    position: relative;
}

.hero-overlay {
    background: rgba(0,0,0,0.45);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: white;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
}

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--darkgreen);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* PARALLAX / STICKY IMAGE */
.parallax {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.parallax-bg {
  transform: translateY(-20px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160%;
  background-image: url("../img/filosofia.jpg");
  background-size: cover;
  background-position: center;
  transform: translateY(0);
  will-change: transform;
}

.parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.parallax-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  font-size: 2.4rem;
  font-style: italic;
}

/* =====================
   SCROLL TO TOP BUTTON
   ==================*/
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: darkgreen;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  display: block !important;
  z-index: 9999;
}

/* ===== SEZIONE SERVIZI ===== */

#servizi {
    padding: 60px 5%;
    background: var(--light-gray);
}

.services-grid {
    display: flex;
    gap: 20px;
}

.service-card {
    background: white;
    flex: 1;
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card h3 {
    margin: 20px 0;
    font-size: 1.1rem;
    color: var(--darkgreen);
    flex-grow: 1;
}

.service-btn {
    margin-top: auto;
    padding: 10px 20px;
    background: var(--darkgreen);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* Testo sotto servizi */

.services-text {
    text-align: center;
    font-size: 2rem;
    margin-top: 50px;
    color: var(--darkgreen);
    font-weight: normal;
}

.services-text a {
    color: var(--darkgreen);
    text-decoration: underline;
}

/* CLIENTI */
#clienti {
    background: white;
    padding: 60px 0;
    text-align: center;
}

.client-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.client-logos img {
    width: 150px;
    height: 80px;
    object-fit: contain;
}


.client-trust {
    font-size: 2rem;
    font-weight: normal;
}

/* QUICK INFO */
#quick-info {
    background: #fafafa;
    padding: 60px 0;
}

.quick-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.quick-info-logo img {
    width: 150px;
}

.quick-info-center {
    text-align: center;
}

.quick-info-center a,
.quick-info-menu a {
    color: var(--darkgreen);
    text-decoration: none;
}

.quick-info-menu ul {
    list-style: none;
}

.quick-info-menu li {
    margin-bottom: 10px;
}
#quick-info .btn-primary {
    background: var(--darkgreen);
    color: white;
    padding: 12px 30px;
    display: inline-block;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background:darkgreen;
    border-top:#fafafa;
    color:white;
}

/* SCROLL TOP */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: darkgreen;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6rem;
    z-index: 9999;

    /* inizialmente invisibile */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* quando il pulsante deve comparire */
#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}

.parallax-section,
.parallax-section * {
    color: #ffffff !important;
}


/* Contenitore delle card */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Singola card */
.service-card {
    display: flex;
    flex-direction: column; /* contenuto verticale */
    justify-content: space-between; /* spinge il pulsante in basso */
    width: 280px; /* larghezza fissa */
    min-height: 400px; /* altezza uniforme */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Immagine */
.service-card img {
    width: 100%;
    height: 160px; /* altezza fissa */
    object-fit: cover; /* ritaglia l’immagine mantenendo proporzioni */
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Titolo */
.service-card h1 {
    color: var(--darkgreen);
    font-size: 1.1rem;
    margin: 10px 0;
    flex-shrink: 0;
}

/* Testo */
.service-card p {
    font-size: 0.95rem;
    color: black ;
    margin-bottom: 15px;
    flex-grow: 1; /* occupa spazio extra per uniformare l’altezza */
}

/* Pulsante */
.service-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: darkgreen;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.service-btn:hover {
    background-color: #0056b3;
}

/* HERO con sfondo statico solo per impiantistica */
body.impiantistica-page .hero {
    height: 60vh;
    background: url("../img/sfondo-impiantistica.jpg") center / cover no-repeat;
    background-attachment: scroll; /* disabilita qualsiasi effetto parallax */
}


.parallax {
  position: relative;
  height: 400px;
  overflow: hidden;
}