/* --- Root Variables --- */
:root {
    --red: #a61932;
    --green-light: #9dc2c6;
    --green-dark: #78acb5;
    --white: #ffffff;
    --gray: #f0f0f0;
    --divider: rgba(0, 0, 0, 0.08);
    --divider-light: rgba(255, 255, 255, 0.2);
    --border-radius: 0px; 
    --transition-fluid: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Base & Tipografia --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.red { color: var(--red); }
.green-light { color: var(--green-light); }
.green-dark { color: var(--green-dark); }
.white { color: var(--white); }
.gray { color: var(--gray); }

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

/* Classi di utilità */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #ffffff !important; }
.bg-white { background-color: #ffffff; }
.mt-lg { margin-top: 40px; }
.bg-teal {background-color: #00323c;}
.bg-red-custom {background-color: #b70b29;}
.text-teal {
	background-color: rgba(255,255,255,0.5);
	color: #00323c;
	padding: 5px;
	text-transform: uppercase;
	font-weight: 300;
}
/* --- Gestione Logo --- */
.main-logo {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    transition: var(--transition-fluid);
}

.main-logo:hover {
    transform: scale(1.05);
}

.logo-box a {
    text-decoration: none;
    display: inline-block;
}

/* Header Logo Image */
.logo-img {
    max-height: 70px;
    width: auto;
    display: inline-block;
}

/* --- Animazioni d'Ingresso Sicure --- */
@keyframes fadeUpSafely {
    0% { opacity: 0; transform: translateY(500px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    /* Formato: nome durata curva di accelerazione stato-finale */
    animation: fadeUpSafely 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }


/* --- Animazione Sfondi (Loop Molto Lento) --- */
@keyframes slowGradientLoop {
    0% { background-position: 0% 100%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Sfondo Animato Verde Scuro (Hero) */
.bg-dark-green {
    background: linear-gradient(-45deg, var(--green-dark), #507e86, #80b0b7, var(--green-dark));
    background-size: 200% 200%;
    animation: slowGradientLoop 10s ease-in-out infinite;
}

/* Sfondo Animato Verde Chiaro (Biotech) */
.bg-light-green {
    background: linear-gradient(-45deg, var(--green-light), #b4d8dc, #8db5b9, var(--green-light));
    background-size: 200% 200%;
    animation: slowGradientLoop 10s ease infinite;
}

/* Sfondo Animato Rosso (Footer) */
.bg-red {
    background: linear-gradient(-45deg, var(--red), #8a1328, #b81f3a, var(--red));
    background-size: 200% 200%;
    animation: slowGradientLoop 10s ease-in-out infinite;
}

/* Typography variants */
.fw-light { font-weight: 400 !important; }
.fw-bold { font-weight: 600 !important; }
.fw-extra-bold { font-weight: 800 !important; }



/* --- Layout & Spazi --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 120px 0;
    border-bottom: 1px solid var(--divider);
}

.py-xl { padding: 200px 0; }
.py-lg { padding: 180px 0; }
.py-md { padding: 150px 0; }
.py-sm { padding: 130px 0; }

/* --- Header --- */
.header-main {
    padding: 20px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--divider);
}

/* --- Hero Section --- */
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-suptitle {
    color: var(--red); 
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-tags {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-tags span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Sezioni di Testo --- */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 800px; 
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.radici-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.05rem;
}

.radici-text ol {
    padding-left: 20px;
}

/* --- Griglie e Cards --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.glass-card, .white-card, .icon-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition-fluid);
    border: 1px solid var(--divider);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.section-biotech .glass-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--white);
}

.glass-card:hover, .white-card:hover, .icon-card:hover, .custom-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.custom-card {
    transition: var(--transition-fluid);
    border-bottom: 1px solid var(--divider);
    box-shadow: 0 5px 15px rgba(0,0,0,0.0);
    background: rgba(255,255,255,0.1);
    padding: 0px;
}

.custom-card p {
    padding: 10px 40px;
}




/* ICONE DINAMICHE: Assumono il colore del contenitore genitore */
.icon-title {
    color: var(--green-dark);
    margin-bottom: 15px;
}

.icon-title i {
    margin-right: 8px;
    color: inherit; /* Questo rende l'icona identica al colore della scritta a fianco */
}

.card-icon {
    font-size: 1.5rem;
    margin-top: 30px;
}


/* --- Footer --- */
.footer-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.footer-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.white-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    border-top: 1px solid var(--divider-light);
    padding-top: 30px;
}

.column-item {
    padding: 10px;
    border-left: 1px solid var(--divider-light);
    transition: var(--transition-fluid);
}

.column-item:first-child { 
    border-left: none; 
}

.column-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0px;
}

.column-item p {
    font-size: 0.9rem;
    color: var(--white);
}

.footer-bottom {
	margin: 50px 0;
	font-size: 12px;
}

.fw-light {
    font-weight: 400 !important;
}
