/* style.css */
:root {
    /* Palette originale Casciano Industry */
    --primary: #0056b3;  
    --secondary: #333333;
    --accent: #e30613;
    --light: #f8f9fa;
    --dark: #212529;
    --text: #495057;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
    background-color: #ffffff;
}

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

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--secondary);
}

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

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* LOADER */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 86, 179, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 200px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 1px;
}

.logo-img {
    width: 250px; /* o la dimensione che preferisci */
    height: auto; /* mantiene proporzioni */
}

.logo-highlight {
    color: var(--primary);
}

.hamburger {
    width: 30px;
    height: 20px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    transition: var(--transition);
}

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

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

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

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 30px;
}

.nav-link {
    position: relative;
    padding: 5px 0;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1513828583688-c52646db42da') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: -1;
}

.hero-content {
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(0, 86, 179, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
     font-size: 0.85rem; 
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-button i {
    margin-left: 10px;
    transition: var(--transition);
}

.cta-button:hover i {
    transform: translateX(5px);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    z-index: 2;
}
.scroll-icon {
    margin: 8px auto 0 auto; /* centra il cerchio orizzontalmente sotto il testo */
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    animation: bounce 2s infinite;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, 15px);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* SECTIONS */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

/* FOOTER */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 0;
    text-align: left; /* tutto allineato a sinistra */
}

.footer .container {
    text-align: left; /* assicurati che il container sia left */
}

/* Se vuoi che tutti i testi dentro footer siano left, puoi aggiungere: */
.footer * {
    text-align: left;
}

/* Ma per la parte in basso, centrala di nuovo */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-logo .logo-highlight {
    color: var(--primary);
}

.footer ul {
    list-style: none;
}

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

.footer li i {
    margin-right: 10px;
    color: var(--primary);
}

/* Qui centro la scritta "Scorri per scoprire" con animazione */
.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white; /* Se vuoi testo visibile */
    font-weight: 500;
    font-size: 1.1rem;
}

/* Se vuoi regolare la dimensione o animazione dello scroll icon */
.scroll-icon {
    margin-top: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid #11633d;
    border-radius: 50%;
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}


.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.newsletter {
    display: flex;
    margin-top: 20px;
}

.newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: inherit;
}

.newsletter button {
    padding: 10px 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter button:hover {
    background-color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.legal-links {
    margin-top: 10px;
}

.legal-links a {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--primary);
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 100px 30px;
    }
    
    .nav li {
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 12px 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: 4px;
        margin-bottom: 5px;
    }
    
    .newsletter button {
        border-radius: 4px;
    }
}

/* ===========================
   CENTRATURA COMPLETA TESTI
   =========================== */

/* Testi principali */
body, h1, h2, h3, h4, h5, h6, p, a, li {
    text-align: center;
}

/* Contenitori di contenuti testuali */
.hero-content,
.section-title,
.newsletter,
.hero-subtitle,
.hero-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Pulsante centrato */
.cta-button {
    display: block;
    margin: 20px auto 0;
}

/* Newsletter centrata */
.newsletter {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}

/* Centrare le icone social */
.social-links {
    justify-content: center;
}

/* Centrare logo e nav desktop */
.logo-container {
    justify-content: center;
    flex-direction: column;
}

.nav ul {
    justify-content: center;
    width: 100%;
}
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
.nero {
    color: #000000; 
}
.verde-acqua {
    color: #11633d; 
}
/* Stili per la sezione "Punti di Forza del Nostro Servizio" */
.service-strength-section {
    padding: 80px 0; /* Aggiungi padding superiore e inferiore */
    text-align: center;
    background-color: #f8f8f8; /* Un leggero sfondo per distinguerla */
}

.service-strength-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Stili per il titolo con linee laterali */
.section-heading-with-lines {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 60px; /* Spazio sotto il titolo */
    position: relative;
    display: inline-block; /* Per centrare le linee rispetto al testo */
}

.section-heading-with-lines::before,
.section-heading-with-lines::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 150px; /* Lunghezza delle linee */
    height: 1px; /* Spessore delle linee */
    background-color: #ccc; /* Colore delle linee */
}

.section-heading-with-lines::before {
    left: -170px; /* Posiziona la linea a sinistra del testo */
}

.section-heading-with-lines::after {
    right: -170px; /* Posiziona la linea a destra del testo */
}

/* Griglia per gli elementi di forza */
.strength-grid {
    display: flex;
    justify-content: space-around; /* Distribuisce gli elementi uniformemente */
    flex-wrap: wrap; /* Permette agli elementi di andare a capo su schermi piccoli */
    gap: 30px; /* Spazio tra gli elementi */
}

.strength-item {
    flex: 1; /* Permette agli elementi di espandersi */
    min-width: 220px; /* Larghezza minima per evitare che diventino troppo stretti */
    max-width: 280px; /* Larghezza massima */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strength-item:hover {
    transform: translateY(-5px); /* Effetto al passaggio del mouse */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.strength-icon {
    width: 80px;
    height: 80px;
    background-color: #2c3e50; /* Colore di sfondo dell'icona (blu scuro come nell'immagine) */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.strength-icon i {
    color: #fff; /* Colore dell'icona (bianco) */
    font-size: 3em; /* Dimensione dell'icona */
}

.strength-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #555;
    line-height: 1.5;
    font-weight: 500;
}

/* Media Queries per la responsività */
@media (max-width: 992px) {
    .section-heading-with-lines::before,
    .section-heading-with-lines::after {
        width: 100px; /* Riduci la lunghezza delle linee */
        left: -120px;
        right: -120px;
    }

    .strength-grid {
        justify-content: center; /* Centra gli elementi quando vanno a capo */
    }
}

@media (max-width: 768px) {
    .section-heading-with-lines {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .section-heading-with-lines::before,
    .section-heading-with-lines::after {
        width: 70px; /* Riduci ulteriormente la lunghezza delle linee */
        left: -90px;
        right: -90px;
    }

    .strength-item {
        min-width: 180px;
        max-width: 250px;
    }

    .strength-icon {
        width: 70px;
        height: 70px;
    }

    .strength-icon i {
        font-size: 2.5em;
    }

    .strength-item p {
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .section-heading-with-lines {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .section-heading-with-lines::before,
    .section-heading-with-lines::after {
        width: 40px; /* Linee più corte per schermi molto piccoli */
        left: -60px;
        right: -60px;
    }

    .strength-grid {
        flex-direction: column; /* Impila gli elementi verticalmente */
        align-items: center;
    }

    .strength-item {
        width: 90%; /* Occupa quasi tutta la larghezza disponibile */
        max-width: 300px; /* Mantieni una larghezza massima ragionevole */
    }
}
/* --- Transizione tra pagine --- */
body.page-transition {
opacity: 1;
transition: opacity 0.5s ease;
}

body.fade-out {
 opacity: 0;
}
#about .container {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

#about img {
  width: 100%;
  max-width: 1400px;
  height: 600px;
  object-fit: cover;
}

