:root {
    --primary-color: #0066CC;    /* Blu principale */
    --secondary-color: #004A99;  /* Blu più scuro */
    --accent-color: #FF8C00;     /* Arancione */
    --light-color: #FFFFFF;      /* Bianco puro */
    --dark-color: #333333;       /* Quasi nero */
    --text-color: #212121;       /* Nero testo */
    --text-light: #757575;       /* Grigio per testo secondario */
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    /* Tempi di transizione */
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    --transition-slow: 0.8s;
}

/* Transizioni globali */
* {
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 0;
    height: 140px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.nav-logo-img {
    height: 130px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.ff-blue {
    color: var(--primary-color);
}

.tuttofare-orange {
    color: var(--accent-color);
}

.logo .highlight {
    color: var(--accent-color);
    font-weight: 400;
}

nav ul {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 5px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('../img/hero2.jpeg?v=4');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 140px; /* Per compensare l'header fisso */
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 30px;
    align-items: center;
}

.hero-text-column {
    padding-right: 20px;
}

.hero-text-column h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-text-column p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-logo-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 19.2px rgba(255, 255, 255, 0.3));
    padding: 16px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 40%, transparent 64%);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.5), inset 0 0 14.4px rgba(255, 255, 255, 0.3);
}

/* Servizi */
.servizi {
    padding: 100px 0;
    background-color: white;
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.servizio-card {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.servizio-card:hover {
    transform: translateY(-10px);
}

.servizio-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.servizio-card h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Portfolio */
.portfolio {
    padding: 100px 0;
    background-color: var(--light-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: all 0.3s;
}

/* Mostra solo le prime 3 card del portfolio */
.portfolio-item:nth-child(n+4) {
    display: none !important;
    visibility: hidden !important;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 74, 153, 0.9), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
}

.portfolio-btn-container {
    text-align: center;
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-info {
    color: white;
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.portfolio-btn-container {
    text-align: center;
    margin-top: 50px;
}

.portfolio-btn-container .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.portfolio-btn-container .btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Chi Siamo */
.chi-siamo {
    padding: 100px 0;
    background-color: white;
}

.chi-siamo-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.chi-siamo-text {
    flex: 1;
    min-width: 300px;
}

.chi-siamo-text p {
    margin-bottom: 20px;
}

.chi-siamo-values {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 15px;
}

.value-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-item .icon {
    margin-bottom: 15px;
}

.value-item h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.icon-gif {
    width: 80px;
    height: auto;
}

/* Contatti */
.contatti {
    padding: 100px 0;
    background-color: var(--light-color);
}

.contatti-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contatti-info {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contatti-form-wrapper {
    flex: 1;
    min-width: 300px;
}

.contatti-form {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contatti-form h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.5rem;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
    outline: none;
}

.form-group button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.form-group button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: #004A99;
    color: white;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

.footer-info h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-info .highlight {
    color: #FF8C00;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #FF8C00;
}

.footer-links h3,
.footer-servizi h3,
.footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-servizi h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links:hover h3::after,
.footer-servizi:hover h3::after,
.footer-newsletter:hover h3::after {
    width: 100%;
}

.footer-links ul,
.footer-servizi ul {
    padding: 0;
}

.footer-links li,
.footer-servizi li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: all 0.3s;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s;
}

.footer-links a:hover {
    padding-left: 20px;
    color: #FF8C00;
}

.footer-links a:hover::before {
    opacity: 1;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: inherit;
}

.newsletter-form button {
    background-color: #8BC34A;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background-color: white;
    color: #2E7D32;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #FF8C00;
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-policy {
    display: flex;
    gap: 20px;
}

.footer-policy a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.footer-policy a:hover {
    color: white;
}

.logo img {
    transition: transform 0.5s;
}

.logo:hover img {
    transform: scale(1.05) rotate(2deg);
}

.logo:hover h1 {
    color: var(--accent-color);
}

.animated-text {
    position: relative;
    overflow: hidden;
}

/* Rimossa l'animazione della sottolineatura */

/* Links della navbar animati */
.animated-nav .nav-link {
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-fast);
}

.animated-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-medium);
}

.animated-nav .nav-link:hover {
    color: var(--primary-color);
}

.animated-nav .nav-link:hover::after {
    width: 100%;
}

/* Pulsante pulsante nella navbar */
.pulse {
    animation: shadow-pulse 2s infinite;
}

@keyframes shadow-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Bottoni animati */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease-in-out;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-animated {
    transition: all 0.3s;
}

.btn-animated:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animazione delle icone nei servizi */
.servizio-card .icon i {
    transition: transform 0.5s, color 0.3s;
}

.servizio-card:hover .icon i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* Animazione campi del form */
.form-group input,
.form-group textarea {
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Pulsante WhatsApp flottante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
    animation: pulse 1.5s infinite;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.1);
    }
    20% {
        transform: scale(1);
    }
}

/* Stile per il link attivo nella navbar */
.animated-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.animated-nav .nav-link.active::after {
    width: 100%;
    background-color: var(--primary-color);
    height: 2px;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media queries per versione mobile perfetta */
@media screen and (max-width: 992px) {
    .section-header h2 {
        font-size: 2.2rem;
    }

    .hero-text-column h1 {
        font-size: 3rem;
    }

    .chi-siamo-values {
        flex-direction: column;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .servizi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet in portrait */
@media screen and (max-width: 820px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0;
        background-position: center right;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-text-column {
        text-align: center;
    }
    
    .servizio-card {
        padding: 25px 15px;
    }
}

@media screen and (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    header {
        height: 70px;
    }

    .logo h1 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo {
        gap: 5px;
    }

    .nav-logo-img {
        height: 65px;
    }
    
    .hamburger {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: white;
        width: 80%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding-top: 50px;
    }
    
    nav ul.show {
        right: 0;
    }
    
    nav ul li {
        margin: 15px 0;
        height: auto;
    }
    
    nav ul li a {
        font-size: 1.2rem;
        height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 0;
    }

    .hero {
        background-position: center 30%;
        min-height: 80vh;
    }
    
    .hero-text-column {
        order: 2;
        padding-right: 0;
    }
    
    .hero-logo-column {
        order: 1;
        margin-bottom: 20px;
    }
    
    .hero-text-column h1 {
        font-size: 2rem;
    }

    .hero-text-column p {
        font-size: 1rem;
    }

    .logo-img {
        max-height: 150px;
    }

    .servizi, .portfolio, .chi-siamo, .contatti {
        padding: 70px 0;
    }
    
    .servizi-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-item {
        height: 350px;
    }
    
    /* Nasconde tutte le card dopo la 3ª anche su mobile */
    .portfolio-item:nth-child(n+4) {
        display: none !important;
        visibility: hidden !important;
    }
    
    .chi-siamo-content {
        flex-direction: column;
    }
    
    .contatti-wrapper {
        flex-direction: column;
    }
    
    .contatti-info {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-policy {
        justify-content: center;
        flex-wrap: wrap;
    }    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Centratura elementi Chi Siamo nella versione mobile con larghezza maggiore */
    .chi-siamo-content {
        flex-direction: column;
        align-items: center;
    }
    
    .chi-siamo-text {
        text-align: center;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .chi-siamo-values {
        flex-direction: column;
        width: 100%;
        max-width: 500px; /* Aumentato da 350px a 500px per rendere gli elementi più larghi */
        margin: 0 auto;
    }
    
    .value-item {
        width: 100%;
        margin-bottom: 30px;
        padding: 30px 25px; /* Aumentato il padding interno */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .value-item .icon {
        display: flex;
        justify-content: center;
    }
    
    .value-item h4 {
        font-size: 1.4rem; /* Aumentato leggermente il font size */
        text-align: center;
        width: 100%;
        margin-bottom: 15px; /* Aggiunto più spazio sotto il titolo */
    }
    
    .value-item p {
        text-align: center;
        width: 100%;
        font-size: 1.05rem; /* Leggermente aumentato il font size del testo */
    }
    
    .icon-gif {
        display: block;
        margin: 0 auto 20px auto; /* Aggiunto più spazio sotto l'icona */
        width: 100px; /* Dimensione fissa più grande per l'icona */
        height: auto;
    }
}

/* Tablet - Portfolio 3 colonne */
@media screen and (min-width: 769px) and (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-item {
        height: 300px;
    }
}
