/* Stile AVS Terralba - Caldo e Accogliente */

/* Variabili CSS */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #f39c12;
    --accent-color: #d35400;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #fdf6f3;
    --bg-white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(231, 76, 60, 0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

/* Header e Navigazione */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

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

/* Nav Menu Desktop Styles */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu li {
    list-style: none;
}

.nav-menu .nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo img {
        height: 40px;
    }
}

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

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

.nav-link:hover {
    color: var(--primary-color);
}

.admin-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    overflow: hidden;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') center/cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(231, 76, 60, 0.8), rgba(243, 156, 18, 0.8));
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Breadcrumb */
.breadcrumb {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb nav ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb nav li {
    color: var(--text-light);
}

.breadcrumb nav li:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb nav li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb nav li a:hover {
    color: var(--accent-color);
}

.breadcrumb nav li.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* Stats Section */
.stats {
    padding: 5rem 0;
    background: white;
}

/* Latest News Section for Featured Articles */
.latest-news {
    padding: 5rem 0;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 200px;
    background: url('../images/news-placeholder.jpg') center/cover;
    position: relative;
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--accent-color);
    gap: 0.5rem;
}

.news-more {
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Services Section Premium */
.services {
    padding: 5rem 0;
    background: var(--bg-light);
}

.services-intro {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-content .lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
    position: relative;
}

.services-detail {
    padding: 3rem 0;
}

.service-detail-section {
    margin-bottom: 6rem;
    position: relative;
}

.service-detail-section:last-child {
    margin-bottom: 0;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.service-detail-section.alternate .service-detail-content {
    grid-template-columns: 1fr 1fr;
}

.service-detail-section.alternate .service-detail-content {
    direction: rtl;
}

.service-detail-section.alternate .service-detail-content > * {
    direction: ltr;
}

.service-detail-text {
    padding: 2rem;
}

.service-detail-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.service-detail-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.service-detail-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.1);
    background: white;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.feature-item span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.service-contact {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(243, 156, 18, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.service-contact p {
    margin: 0.5rem 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.service-contact strong {
    color: var(--primary-color);
    font-weight: 700;
}

.service-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-contact a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.service-detail-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.service-detail-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(231, 76, 60, 0.15);
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.service-detail-image:hover img {
    transform: scale(1.1);
}

/* Number badges for services */
.service-detail-section:nth-child(1) .service-detail-text::before {
    content: '01';
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(231, 76, 60, 0.1);
    z-index: -1;
}

.service-detail-section:nth-child(2) .service-detail-text::before {
    content: '02';
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(243, 156, 18, 0.1);
    z-index: -1;
}

.service-detail-section:nth-child(3) .service-detail-text::before {
    content: '03';
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(231, 76, 60, 0.1);
    z-index: -1;
}

.service-detail-section:nth-child(4) .service-detail-text::before {
    content: '04';
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(243, 156, 18, 0.1);
    z-index: -1;
}

/* CTA Section for Services */
.services-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
}

.services-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.services-cta .btn {
    background: white;
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.services-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Service Process Steps */
.service-process {
    padding: 5rem 0;
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Enhanced animations */
.animate-hover-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.animate-hover-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

.animate-hover-delay-3 {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.6s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

/* About Us Page Styles */
.about-content {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.about-main {
    margin-top: 3rem;
}

.about-section {
    margin-bottom: 6rem;
    position: relative;
}

.about-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section.alternate .section-content {
    grid-template-columns: 1fr 1fr;
}

.about-section.alternate .section-content .content-image {
    order: -1;
}

/* Force full width layout */
.about-content .container {
    max-width: 100%;
    padding: 0 20px;
}

.about-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 6rem;
}

/* Ensure text and image take full width */
.content-text,
.content-image {
    width: 100%;
}

/* Force layout override removed */

.content-text {
    padding: 2rem;
}

.content-text .lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.content-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.content-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(231, 76, 60, 0.15);
}

.content-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.6s ease;
}

.content-image:hover img {
    transform: scale(1.1);
}

/* Mission and Values Section */
.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mission-item {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.mission-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mission-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(231, 76, 60, 0.15);
}

.mission-item:hover::before {
    transform: scaleX(1);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.mission-item:hover .mission-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.mission-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.mission-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.activity-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.15);
}

.activity-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
}

.activity-card:hover .activity-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.activity-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.activity-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Enhanced animations for about page */
.animate-scale-delay {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.animate-scale-delay-2 {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

@keyframes scaleUp {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Special CTA for About Page */
.about-section:last-child .cta-content .emphasis {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Team Section Enhancement */
.team-section {
    padding: 5rem 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.team-social a {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-detail-content,
    .service-detail-section.alternate .service-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .service-detail-text h2 {
        font-size: 2rem;
    }
    
    .intro-content .lead {
        font-size: 1.1rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* About page responsive */
    .section-content,
    .about-section.alternate .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-text .lead {
        font-size: 1.1rem;
    }
    
    .content-image img {
        height: 250px;
    }
    
    .mission-values,
    .activities-grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--accent-color);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

/* Duplicate about-content definition removed */

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Latest News Section */
.latest-news {
    padding: 5rem 0;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 200px;
    background: url('../images/news-placeholder.jpg') center/cover;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.news-more {
    text-align: center;
}

.no-featured {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.no-featured p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
}

/* Blog Styles */
.blog-main {
    padding: 5rem 0;
    background: var(--bg-light);
}

.blog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.sidebar-widget h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.category-list .count {
    background: var(--bg-light);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-list a:hover .count,
.category-list a.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form button {
    padding: 0.8rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.articles-header {
    margin-bottom: 3rem;
    text-align: center;
}

.articles-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.articles-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.articles-count {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.15);
}

.article-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: var(--primary-color);
}

.article-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.article-author {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 1rem;
    transform: translateX(3px);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Featured Articles */
.featured-articles {
    padding: 4rem 0;
    background: white;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.featured-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(231, 76, 60, 0.2);
}

.featured-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.15);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0.7;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    z-index: 2;
}

.featured-content .article-meta {
    margin-bottom: 1rem;
}

.featured-content .article-category {
    background: var(--primary-color);
}

.featured-content .article-date {
    color: rgba(255, 255, 255, 0.9);
}

.featured-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.featured-content .read-more {
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-content .read-more:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    gap: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pagination-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.pagination-link.active {
    background: var(--primary-color);
    color: white;
}

/* Contact Information Section */
.contact-info {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(231, 76, 60, 0.15);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.contact-details {
    margin: 2rem 0;
    min-height: 80px;
}

.contact-details p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.contact-details strong {
    color: var(--text-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

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

.contact-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.contact-link:hover::after {
    width: 100%;
}

/* ===================================
   BILANCI PAGE STYLES
==================================== */

.bilanci-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.bilanci-intro {
    margin-bottom: 60px;
}

.intro-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.transparency-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.feature-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-primary);
}

.intro-image {
    text-align: center;
    padding: 20px;
}

.intro-image img {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.intro-image img:hover {
    transform: scale(1.05);
}

/* Filtri */
.bilanci-filters {
    margin-bottom: 50px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.filter-btn i {
    font-size: 0.9rem;
}

/* Lista Bilanci */
.bilanci-list {
    margin-bottom: 60px;
}

.bilancio-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.bilancio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.bilancio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.bilancio-type {
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bilancio-type.badge-primary {
    background: var(--primary-color);
    color: white;
}

.bilancio-type.badge-success {
    background: #27ae60;
    color: white;
}

.bilancio-type.badge-info {
    background: #3498db;
    color: white;
}

.bilancio-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 8px 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
}

.bilancio-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.bilancio-info {
    flex: 1;
}

.bilancio-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.bilancio-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.bilancio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-color);
}

.bilancio-actions {
    display: flex;
    align-items: center;
}

.bilancio-actions .btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bilancio-actions .btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
}

.bilancio-actions .btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* No Bilanci Message */
.no-bilanci {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.no-bilanci-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.no-bilanci h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-bilanci p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Error Message */
.error-message {
    background: #e74c3c;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
}

/* Note Legali */
.legal-notes {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
}

.notes-header h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: start;
}

.note-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    margin-top: 2px;
}

.note-item div {
    flex: 1;
    line-height: 1.6;
}

.note-item strong {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .bilanci-section {
        padding: 60px 0;
    }
    
    .intro-content h2 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .bilancio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .bilancio-body {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bilancio-actions {
        width: 100%;
    }
    
    .bilancio-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .bilancio-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .transparency-features {
        margin-top: 20px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .legal-notes {
        padding: 30px 20px;
    }
    
    .note-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .bilanci-intro {
        margin-bottom: 40px;
    }
    
    .bilanci-filters {
        margin-bottom: 30px;
    }
    
    .bilanci-list {
        margin-bottom: 40px;
    }
    
    .bilancio-item {
        padding: 20px;
    }
    
    .bilancio-title {
        font-size: 1.1rem;
    }
    
    .bilancio-type {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .bilancio-year {
        font-size: 1.2rem;
    }
}

.contact-description {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Special styling for emergency phone */
.contact-card:first-child .contact-link[href^="tel:327"] {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card:first-child .contact-link[href^="tel:327"]::before {
    content: '🚨';
    font-size: 1.2rem;
}

/* Enhanced animations */
.animate-hover-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.animate-hover-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

.animate-hover-delay-3 {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.6s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Emergency pulse effect for first card */
.contact-card:first-child {
    border: 2px solid rgba(231, 76, 60, 0.2);
    background: linear-gradient(135deg, white 0%, rgba(231, 76, 60, 0.02) 100%);
}

.contact-card:first-child .contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.3);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }
}

/* Operating hours special styling */
.contact-card:last-child .contact-details {
    background: rgba(243, 156, 18, 0.05);
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid var(--secondary-color);
}

/* Contact Forms Section */
.contact-forms {
    padding: 5rem 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.form-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.form-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.form-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.form-header p {
    color: var(--text-light);
    margin-top: 1rem;
}

.contact-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Fixed button styles for forms */
.contact-form .btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
    margin-top: 1rem;
    width: 100%;
    justify-self: center;
}

.contact-form .btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.contact-form .btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.contact-form .btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.contact-form .btn-secondary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.emergency-notice {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emergency-notice a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.emergency-notice a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    background: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

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

.animate-slide-up {
    animation: slideUp 1s ease-out 0.3s both;
}

.animate-slide-up-delay {
    animation: slideUp 1s ease-out 0.6s both;
}

.animate-slide-left {
    animation: slideLeft 1s ease-out;
}

.animate-slide-right {
    animation: slideRight 1s ease-out;
}

.animate-scale {
    animation: scale 1s ease-out;
}

.animate-scale-delay {
    animation: scale 1s ease-out 0.2s both;
}

.animate-scale-delay-2 {
    animation: scale 1s ease-out 0.4s both;
}

.animate-hover {
    transition: all 0.3s ease;
}

.animate-hover-delay {
    transition: all 0.3s ease 0.1s;
}

.animate-hover-delay-2 {
    transition: all 0.3s ease 0.2s;
}

.animate-hover-delay-3 {
    transition: all 0.3s ease 0.3s;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

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

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Statuto Page Styles */
.statuto-content {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.statuto-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.statuto-logo img {
    height: 80px;
    transition: transform 0.3s ease;
}

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

.statuto-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.statuto-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.statuto-title h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    font-style: italic;
}

.statuto-motto {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.2);
}

.statuto-motto h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.statuto-motto p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.statuto-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 4rem;
    text-align: center;
}

.statuto-info p {
    margin: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.statuto-info strong {
    color: var(--primary-color);
}

.statuto-document {
    background: white;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.statuto-document h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.statuto-document h3:first-child {
    margin-top: 0;
}

.statuto-document p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: justify;
}

.statuto-document strong {
    color: var(--primary-color);
    font-weight: 600;
}

.statuto-document ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.statuto-document li {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.statuto-download {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(243, 156, 18, 0.05) 100%);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 4rem;
    border-left: 4px solid var(--primary-color);
}

.statuto-download h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.statuto-download p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Blog Responsive Design */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        position: static;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card {
        margin-bottom: 2rem;
    }
    
    .featured-card:last-child {
        margin-bottom: 0;
    }
    
    /* Statuto Responsive */
    .statuto-header {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    .statuto-title h2 {
        font-size: 2rem;
    }
    
    .statuto-title h3 {
        font-size: 1.3rem;
    }
    
    .statuto-title h4 {
        font-size: 1.1rem;
    }
    
    .statuto-motto {
        padding: 1.5rem;
    }
    
    .statuto-motto h2 {
        font-size: 1.6rem;
    }
    
    .statuto-document {
        padding: 2rem;
    }
    
    .statuto-document h3 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }
    
    .statuto-document ul {
        padding-left: 1.5rem;
    }
    
    .statuto-download {
        padding: 2rem;
        margin-top: 3rem;
    }
}

/* General Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }
}