/* ADSE - main.css */
/* File CSS principale per il sito ADSE */

/* ==================
   Variabili colori
   ================== */
:root {
    --adse-blue: #2c92b1;
    --adse-dark-blue: #1e6b83;
    --adse-grey: #707070;
    --adse-light-grey: #f3f3f3;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --body-bg: #ffffff;
    --body-text: #333333;
    --section-padding: 80px 0;
    --section-padding-mobile: 50px 0;
}

/* ==================
   Reset e base
   ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--body-text);
    background-color: var(--body-bg);
    overflow-x: hidden;
}

.logo-desktop{
    max-width: 30%;
}


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

a {
    color: var(--adse-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--adse-dark-blue);
    text-decoration: none;
}

ul {
    list-style: none;
}


input.form-control,
textarea.form-control {
    border-color: #ccc;
    box-shadow: none;
    transition: all 0.3s ease;
}

input.form-control:focus,
textarea.form-control:focus {
    border-color: var(--adse-blue);
    box-shadow: 0 1px 0 0 var(--adse-blue);
}

button.btn-success {
    background-color: var(--success);
    border: none;
    border-radius: 6px;
    font-weight: bold;
}

button.btn-success:hover {
    background-color: var(--adse-blue);
}

input.form-control,
textarea.form-control {
    background-color: transparent;
    border-radius: 0;
    border-width: 0 0 1px 0;
    transition: all 0.3s ease;
}

input.form-control:focus,
textarea.form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--adse-blue);
}



/* ==================
   Container e Grid
   ================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
    width: 100%;
}

.col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.bg-light {
    background-color: var(--adse-light-grey);
}

.section-padding {
    padding: var(--section-padding);
}

/* ==================
   Tipografia
   ================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--adse-grey);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--adse-blue);
    display: inline-block;
    position: relative;
}

.section-line {
    width: 80px;
    height: 3px;
    background-color: var(--adse-blue);
    margin: 0 auto 20px;
}

.section-subtitle {
    color: var(--adse-grey);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ==================
   Bottoni
   ================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--adse-dark-blue);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--adse-blue);
    border: 2px solid var(--adse-blue);
}

.btn-outline:hover {
    background-color: var(--adse-blue);
    color: var(--white);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ==================
   Cookie Banner
   ================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--white);
    padding: 20px;
    z-index: 9999;
    display: none; /* Nascosto di default, mostrato via JS */
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    padding-right: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn {
    padding: 8px 20px;
}

/* ==================
   Header
   ================== */
.main-header {
    position: fixed;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    max-width: 250px;
}

.logo-mobile {
    display: none;
}

/* ==================
   Navigation
   ================== */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: var(--adse-grey);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--adse-blue);
    transition: width 0.3s ease;
}

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

.nav-menu a.active {
    color: var(--adse-blue);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0 15px;
}

.dropdown-menu a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--adse-light-grey);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--adse-blue);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 20px;
}

/* ==================
   Hero Section
   ================== */
.hero {
    padding-top: 90px; /* Spazio per l'header */
    position: relative;
}

.hero-image {
    height: 600px;
    background-color: #095269; /* Fallback color */
    background-image: url('/img/hero.png');
    background-size: cover;
    background-position: top;
    position: relative;
}

.hero-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 107, 131, 0.9), rgba(30, 107, 131, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
    padding: 100px 0;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================
   Chi Siamo Section
   ================== */
.chi-siamo-content {
    padding-right: 30px;
}

.chi-siamo-content h3 {
    color: var(--adse-blue);
    margin-top: 25px;
    margin-bottom: 10px;
}

.chi-siamo-content h3:first-child {
    margin-top: 0;
}

.chi-siamo-image {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ==================
   Servizi Section
   ================== */
.servizio-box {
    background-color: var(--white);
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servizio-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.servizio-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(44, 146, 177, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.servizio-icon i {
    font-size: 28px;
    color: var(--adse-blue);
}

.servizio-box h3 {
    color: var(--adse-grey);
    margin-bottom: 15px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    margin-top: 10px;
}

.link-arrow:after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.link-arrow:hover:after {
    transform: translateX(5px);
}

/* ==================
   Formazione Section
   ================== */
.formazione-image {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.formazione-steps {
    padding-left: 30px;
}

.step-item {
    display: flex;
    margin-bottom: 30px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--adse-blue);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 20px;
}

.step-content h3 {
    margin-bottom: 10px;
}

/* ==================
   Servizi SAS Section
   ================== */
.servizio-sas-box {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.servizio-sas-image {
    height: 250px;
    overflow: hidden;
}

.servizio-sas-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servizio-sas-box:hover .servizio-sas-image img {
    transform: scale(1.05);
}

.servizio-sas-box h3,
.servizio-sas-box p,
.servizio-sas-box a {
    padding: 0 25px;
}

.servizio-sas-box h3 {
    margin-top: 20px;
    color: var(--adse-blue);
}

.servizio-sas-box a {
    display: inline-block;
    padding-bottom: 25px;
}

/* ==================
   Clienti Section
   ================== */
.clienti-category {
    margin-bottom: 40px;
}

.clienti-category h3 {
    color: var(--adse-blue);
    border-bottom: 1px solid var(--adse-light-grey);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.clienti-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.cliente-logo {
    flex: 0 0 calc(20% - 30px);
    max-width: calc(20% - 30px);
    padding: 15px;
    border-radius: 5px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cliente-logo:hover {
    transform: translateY(-5px);
}

.cliente-logo img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.cliente-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ==================
   Metodo Section
   ================== */
.metodo-image {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.metodo-item {
    margin-bottom: 25px;
}

.metodo-item h3 {
    color: var(--adse-blue);
    margin-bottom: 10px;
}

/* ==================
   Valori Section
   ================== */
.valore-box {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
    transition: transform 0.3s ease;
}

.valore-box:hover {
    transform: translateY(-10px);
}

.valore-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(44, 146, 177, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.valore-icon i {
    font-size: 32px;
    color: var(--adse-blue);
}

.valore-box h3 {
    color: var(--adse-blue);
    margin-bottom: 15px;
}

.valore-box p {
    margin-bottom: 0;
}

/* ==================
   CTA Section
   ================== */
.cta-section {
    margin: 80px 0;
}

.cta-bg {
    background-color: var(--adse-blue);
    background-image: url('../images/cta-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
}

.cta-bg:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 107, 131, 0.9);
}

.cta-content {
    position: relative;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================
   Footer
   ================== */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding-top: 70px;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.footer-social a:hover {
    background-color: var(--adse-blue);
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.footer-links ul li a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--adse-blue);
    padding-left: 5px;
}

.footer-contact {
    margin-bottom: 30px;
}

.footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-item {
    display: flex;
    margin-bottom: 15px;
}

.contact-item i {
    margin-right: 15px;
    color: var(--adse-blue);
}

.contact-item a {
    color: #ccc;
}

.footer-stats {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--adse-blue);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.stat-desc {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.copyright {
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #aaa;
    font-size: 0.9rem;
}

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

/* ==================
   Animazioni
   ================== */
.animate-fade-in {
    animation: fadeIn 1s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
