/* ===================================
   Studio Oculistico Maserati - CSS
   =================================== */

/* Color Palette - More Amateur/Human Style */
:root {
    --orange: #ff6600;      /* Bright orange primary */
    --orange-thin: #ffd6c4;
    --orange-light: #FF8C61; /* Lighter orange */
    --orange-dark: #E85A28;  /* Darker orange */
    --orange-superlight: #faf6f6;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-bg: #F5F5F5;
    --navy: #142036;         /* Deep navy for text */
    --maseblue: #4B7FB1;
    --maseblue-dark: #0c3a63;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Urbanist", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--orange-superlight);
    letter-spacing: 0.02em;
    word-spacing: 0.12em;
    
}

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

/* Typography - More Friendly and Human */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy);
    letter-spacing: 0.02em;
    word-spacing: 0.12em;
}

h1 { 
    font-size: 3rem;
    font-weight: 700;
}
h2 { 
    font-size: 2.5rem;
    font-weight: 600;
}
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.article-covers {
    width: 100%;
    padding: 8px 0;
}

/* Swiper spacing */
.article-swiper {
    padding: 12px 4px 24px;
}


@media(min-width: 900px) {
	.hero-section {
		height: 120vh !important;
	}
	#homeArticleCarousel {
		margin-top: -114px;
	    z-index: 99;
		position: absolute;
	}
	#homeArticleCarouselComp {
		height: 160px
	}
}

/* CARD */
.article-card {
	margin-left: 1em;
	margin-right: 1em;
    height: clamp(180px, 22vw, 260px);
    border-radius: 50px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #fff;

    box-shadow:
        0 10px 30px rgba(0,0,0,.15),
        0 2px 8px rgba(0,0,0,.08);

    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        box-shadow .45s ease;
}

/* overlay principale */
.article-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(46 22 5) 45%, rgba(0, 0, 0, .1) 100%);
    opacity: 0.6;
    z-index: 1;
    
}

/* light overlay on hover */
.article-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.06);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 2;
}

/* contenuto */
.article-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.article-card h3 {
    margin: 0;
    font-size: clamp(1.1rem, 1.1vw, 1.35rem);
    font-weight: 600;
    line-height: 1.25;
	color: #fff;
    text-shadow:
        0 2px 8px rgba(0,0,0,.35);

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* HOVER desktop only */
@media (hover:hover) and (pointer:fine) {
    .article-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow:
            0 18px 45px rgba(0,0,0,.22),
            0 6px 18px rgba(0,0,0,.12);
    }

    .article-card:hover::after {
        opacity: 1;
    }
}

/* Mobile touch feedback */
@media (hover:none) {
    .article-card:active {
        transform: scale(.98);
    }
}

/* Swiper fixes */
.swiper-slide {
    height: auto;
}

/* Optional smooth edge on sides */
.article-swiper::before,
.article-swiper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    z-index: 10;
}

@media(max-width: 900px) {
	.article-card {
		max-width: 90vw !important;
		margin-left: 2px !important;
		margin-top: 3em;
	}
}

.article-card {
	margin-right: 1em;
    display: block;
}
.article-card {
    min-height: 220px;
}


.article > p {
	color: #000 !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
a:hover {
	color: var(--orange);
}

/* Buttons */
a.btn:hover {
	color: #fff !important;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

a.btn-primary {
	width: 100%;
    text-align: center;
    margin: auto;
    display: block;
    letter-spacing: 0.6px;
}

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

.btn-primary:hover {
    background: #B85E1F;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(207, 113, 42, 0.3);
}

.btn-primary:active {
    opacity: 0.6;
}

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

.btn-secondary:hover {
    background: #7AA3C4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(141, 185, 218, 0.3);
}

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

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 120vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-height: 1200px;
}

.hero-images {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* NUOVO: contenitore per ogni categoria */
.hero-image-group {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}
.hero-image-group.active {
    opacity: 1;
    pointer-events: auto;
}

/* invariato, ma ora è relativo al gruppo, non più a .hero-images */
.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-image.active {
    opacity: 1;
}

.hero-overlay {
	
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 43, 74, 0.75) 0%, rgba(26, 43, 74, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 40px 20px;
}

.hero-logo h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-motto {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-motto strong {
    font-weight: 700;
    color: var(--orange);
}

/* Category Navigation - Sausage Shape */
.category-nav {
    display: flex;
    gap: 0.4em;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    background: var(--white);
    padding: 8px;
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.category-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    background: transparent;
    border: none;
    border-radius: 100px;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.category-btn i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.category-btn span {
    transition: color 0.3s ease;
    letter-spacing: 0.6px;
}

.category-btn:hover {
    background: var(--off-white);
    transform: translateY(-2px);
}

.category-btn:hover i {
    transform: scale(1.1);
}

.category-btn.active {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.category-btn.active:hover {
    background: var(--orange-dark);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Introduction Section */
.intro-section {
    padding: 80px 0;
    background: var(--white);
}

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

.submenu-content {
    display: none;
    background: var(--off-white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
}

.submenu-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.submenu-content h3 {
    color: var(--navy);
    margin-bottom: 25px;
    font-size: 2rem;
}

.submenu-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.submenu-links li a {
    padding: 12px 24px;
    background: var(--white);
    color: var(--navy);
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 2px 8px var(--shadow);
    letter-spacing: 0.6px;
}

.submenu-links li a:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Dynamic Content */
.intro-content {
    position: relative;
    letter-spacing: 0.6px;
}

.content-article {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-article.active {
    display: block;
}

.content-article h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--navy);
    font-weight: 700;
}
.content-article p.article-caption {
    text-align: center;
    padding-bottom: 2em;
    margin: auto;
    max-width: clamp(300px, 66vw, 700px);
}

.article-grid {
	padding-top: 2em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.article-text {
    font-size: 1.1rem;
}

.article-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

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

/* Feature List */
.feature-list {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--off-white);
    border-radius: 15px;
    transition: all 0.4s ease;
}

.feature-item:hover {
    background: var(--white);
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow);
    transition: .4s !important;
}

.feature-item i {
    font-size: 2rem;
    color: var(--orange);
    flex-shrink: 0;
}

.feature-item h4 {
    margin-bottom: 5px;
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-item p {
    margin: 0;
    color: var(--text-light);
}

.mt-4 {
    margin-top: 2rem;
}

/* Studio Section */
.studio-section {
    padding: 100px 0;
    background: var(--maseblue-dark);
    color: var(--white);
}

.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.studio-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.studio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.studio-motto {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--orange);
    margin-bottom: 25px;
    font-weight: 500;
}

.studio-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    letter-spacing: 0.6px;
}

.studio-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.studio-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.studio-feature i {
    font-size: 1.8rem;
    color: var(--orange);
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: var(--off-white);
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--navy);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border-radius: 20px;
    border-top-right-radius: 156px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--shadow);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--orange);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    animation: 0.4s;
    transition: 0.4s;
}
.team-photo:hover {
	border: 12px solid var(--orange);
}
.team-photo img {
	margin-top: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center -3px;
    scale: 1.05;
}

.team-member h3 {
    color: var(--navy);
    margin-bottom: 8px;
    font-weight: 600;
}

.team-role {
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-bio {
    color: var(--text-light);
    margin-bottom: 25px;
}

@media(max-width: 767px) {
	.team-member {
		max-width: 300px !important;
	}
}

/* Location Section */
.location-section {
    padding: 100px 0;
    background: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.location-map {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 500px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--dark-blue);
    padding: 40px;
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--orange);
    margin-bottom: 20px;
}

.map-illustration {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
}

.map-note {
    color: var(--text-light);
    font-style: italic;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.location-detail {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--off-white);
    border-radius: 15px;
    box-shadow: 0 3px 12px var(--shadow);
    transition: all 0.3s ease;
}

.location-detail:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.location-detail i {
    font-size: 2rem;
    color: var(--maseblue);
    flex-shrink: 0;
}

.location-detail h4 {
    margin-bottom: 5px;
    color: var(--maseblue);
    font-weight: 600;
}

.location-detail p {
    margin: 0;
    color: var(--text-light);
}

.location-detail a {
    color: var(--orange);
    font-weight: 600;
    transition: color 0.3s ease;
}

.location-detail a:hover {
    color: var(--orange-dark);
}

.mt-3 {
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0 20px;
    padding-left: 3%;
    padding-right: 3%;
}
.footer-col ul {
	padding-left: 0 !important;
	font-size: 0.9em;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--maseblue);
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 8px;
    color: #74b1ff;
}

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

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

.footer-social a:hover {
    background: var(--orange);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p {
	color: #b5b5b5;
}

.footer-partners {
    margin-top: 10px;
}

.footer-partners a {
    color: #74b1ff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-partners a:hover {
    color: var(--orange-light);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-logo h1 { font-size: 2.5rem; }
    .hero-motto { font-size: 1.2rem; }
    
    .header-logo > a > img {
	    float: left !important;
    }
    
    .article-grid,
    .studio-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .category-nav {
        gap: 10px;
    }
    
    .category-btn {
        padding: 6px 20px;
        font-size: 0.9rem;
    }
    
    .category-btn i {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section {
        min-height: 600px;
    }
    .hero-logo h1 { font-size: 2rem; }
    .hero-motto { font-size: 1rem; }
    
    /* Sausage nav becomes vertical menu on mobile */
    .category-nav {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        border-radius: 20px;
        max-width: 100%;
    }
    
    .category-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 16px 24px;
        border-radius: 15px;
    }
    
    .category-btn i {
        font-size: 1.3rem;
    }
    
    .category-btn span {
        flex: 1;
        text-align: left;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .submenu-content {
        padding: 30px 20px;
    }
    
    .submenu-links {
        flex-direction: column;
        margin-left: -35px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-logo h1 { font-size: 1.5rem; }
    .hero-motto { font-size: 0.9rem; }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .studio-features {
        flex-direction: column;
    }
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

/* Contact Wrapper */
.contact-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* ========================================
   LEFT COLUMN - CONTACT INFO & IMAGE
   ======================================== */

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Support Image Box */
.contact-image-box {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-support-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.contact-image-box:hover .contact-support-image {
    transform: scale(1.05);
}

.contact-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 102, 204, 0.95), transparent);
    padding: 30px 20px;
    color: white;
}

.contact-image-text {
    text-align: center;
}

.contact-image-text i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.contact-image-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-image-text p {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
}

/* Contact Info Cards */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: var(--orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-info-content {
    flex: 1;
}

.contact-info-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.contact-info-content p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.contact-info-content a {
    font-size: 0.95rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info-content a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.contact-info-note {
    font-size: 0.85rem !important;
    color: #999 !important;
    margin-top: 3px !important;
}

.contact-info-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

/* ========================================
   RIGHT COLUMN - CONTACT FORM
   ======================================== */

.contact-form-column {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contact-form-wrapper {
    padding: 40px;
}

.contact-form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.contact-form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.contact-form-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-label i {
    color: #0066cc;
    font-size: 1rem;
}

/* Form Row (for side-by-side inputs) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group-half {
    margin-bottom: 0;
}

/* Input Styles */
.contact-input-outer {
    position: relative;
}

.contact-input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.contact-input:focus {
    outline: none;
    border-color: #0066cc;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.contact-input::placeholder {
    color: #999;
}

.contact-input.textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 14px;
}

.contact-input-icon-box {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.contact-input-icon-box.textarea-icon {
    top: 20px;
    transform: none;
}

/* Select Dropdown */
select.contact-input {
    appearance: none;
    background-image: none;
    cursor: pointer;
}

select.contact-input option {
    padding: 10px;
}

/* reCAPTCHA Wrapper */
.captcha-wrapper {
    margin: 20px 0;
    display: flex;
    justify-content: left;
}

/* Privacy Notice */
.form-privacy-notice {
    background: #f0f7ff;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-privacy-notice i {
    color: #0066cc;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-privacy-notice p {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.form-privacy-notice a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 600;
}

/* Submit Button */
.contact-submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.contact-submit-btn:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-submit-btn i {
    font-size: 1.2rem;
}

/* Form Messages */
.form-success-message,
.form-error-message {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
}

.form-success-message {
    background: #d4edda;
    border: 2px solid #28a745;
}

.form-success-message i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
    display: block;
}

.form-success-message h4 {
    color: #155724;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-success-message p {
    color: #155724;
    margin: 0;
}

.form-error-message {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.form-error-message i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 15px;
    display: block;
}

.form-error-message h4 {
    color: #721c24;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-error-message p {
    color: #721c24;
    margin: 0;
}

.form-error-message a {
    color: #0066cc;
    font-weight: 600;
    text-decoration: underline;
}

/* ========================================
   MAP SECTION
   ======================================== */

.contact-map-section {
    margin-top: 60px;
}

.map-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 30px;
}

.contact-map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-map {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-column {
        order: 2;
    }
    
    .contact-form-column {
        order: 1;
    }
    
    .contact-image-box {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .contact-form-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group-half {
        margin-bottom: 20px;
    }
    
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-form-wrapper {
        padding: 20px 15px;
    }
    
    .contact-form-title {
        font-size: 1.3rem;
    }
    
    .contact-submit-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .contact-info-card {
        padding: 15px;
    }
    
    .contact-info-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-info-icon i {
        font-size: 1.2rem;
    }
    
    .contact-image-box {
        height: 250px;
    }
    
    .contact-map {
        height: 300px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.form-group {
    animation: fadeInUp 0.5s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

/* Loading State */
.contact-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.contact-submit-btn.loading .btn-text::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}


/* Hero Video Styling */
.hero-video {
    position: relative;
    overflow: hidden;
}

.hero-video-element {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Fallback image inside video element */
.hero-video-element img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Ensure overlay appears above video */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(97 58 51 / 30%);
    z-index: 2;
}

/* Ensure content appears above video and overlay */
.hero-content {
    position: relative;
    z-index: 3;
}

/* Optimize video performance on mobile */
@media (max-width: 768px) {
    .hero-video-element {
        /* On mobile, you might want to show just the poster/fallback image */
        /* Uncomment the line below if video performance is poor on mobile */
        /* display: none; */
    }
}

/* Smooth transition when switching between categories */
.hero-image {
    transition: opacity 0.5s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

.hero-image:not(.active) {
    opacity: 0;
}



.cc-banner {
	position: fixed;
    inset: auto 0px 0px;
    z-index: 99999;
    background: rgb(255, 255, 255);
    border-top: 1px solid rgb(229, 231, 235);
    padding: 14px 16px;
    display: block;
}
.cc-banner > a {
	text-decoration: underline;
    color: var(--orange);
}
.cc-btn {
	border: 1px solid var(--orange);
    background: #fff;
    color: var(--orange);
    cursor: pointer;
    padding: 10px 29px;
    border-radius: 25px;
}
.cc-btn-confirm {
	font-weight: bold;
	border: 0;
    background: var(--orange);
    color: #fff;
    padding: 10px 29px;
    border-radius: 25px;
    cursor: pointer;
}


.collapsible-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.collapsible-item {
    border-bottom: 1px solid #e0e0e0;
}

.collapsible-item:last-child {
    border-bottom: none;
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: #f9f9f9;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.collapsible-header:hover {
    background: #f0f0f0;
}

.collapsible-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff6600;
    font-weight: bold;
    font-size: 1.1em;
}

.collapsible-icon {
    font-size: 1.2em;
}

.collapsible-toggle {
    font-size: 1.5em;
    color: #ff6600;
    transition: transform 0.3s ease;
}

.collapsible-header[aria-expanded="true"] .collapsible-toggle {
    transform: rotate(180deg);
}

.collapsible-header.collapsed .collapsible-toggle {
    transform: rotate(0deg);
}

.collapsible-body {
    padding: 30px;
}

.collapsible-body p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #000;
    letter-spacing: 0.6px;
}

@media (max-width: 768px) {
    .collapsible-header {
        padding: 15px 20px;
    }
    
    .collapsible-body {
        padding: 20px;
    }
}



.intro-text p {
    margin-bottom: 15px;
    text-align: justify;
}

.intro-text strong {
    text-transform: uppercase;
}

.intro-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.section-title {
    color: #ff6600;
    font-size: 1.5em;
    text-align: center;
    margin: 50px 0 30px;
    text-transform: uppercase;
}

.techniques-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.technique-item {
    border-bottom: 1px solid #e0e0e0;
}

.technique-item:last-child {
    border-bottom: none;
}
.technique-content > p {
    color: #000 !important;
}

.collapsible-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5em 2em;
    background: var(--orange-thin);
    cursor: pointer;
    transition: background 0.3s ease;
}

.collapsible-card-header:hover {
    background: var(--orange-thin);
    opacity: 0.8;
}

.technique-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff6600;
    font-weight: bold;
    font-size: 1.15em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.eye-icon {
    font-size: 1.2em;
}

.toggle-icon {
    font-size: 1.5em;
    color: #ff6600;
    transition: transform 0.3s ease;
}

.toggle-icon.active {
    transform: rotate(180deg);
}

.technique-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 30px;
    color: #000 !important;
    letter-spacing: 0.6px;
}

.technique-content.active {
    max-height: 1000px;
    padding: 30px;
}

.technique-content p {
    text-align: justify;
    line-height: 1.8;
}

.datacard-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2em;
}

.surgery-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.surgery-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.exams-section h2 {
    color: #ff6600;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.exams-list {
    list-style: none;
}

.exams-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    letter-spacing: 0.6px;
}

.exams-list li::before {
    content: "•";
    color: #ff6600;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: 0;
}

@media (max-width: 768px) {
    .intro-section,
    .datacard-section {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.5em;
    }

    .collapsible-card-header {
        padding: 15px 20px;
    }

    .technique-content.active {
        padding: 20px;
    }
}


/* Collapsible Component Styles */
.collapsible-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.collapsible-item {
    border-bottom: 1px solid #e0e0e0;
}

.collapsible-item:last-child {
    border-bottom: none;
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: #f9f9f9;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.collapsible-header:hover {
    background: #f0f0f0;
}

.collapsible-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff6600;
    font-weight: bold;
    font-size: 1.1em;
}

.collapsible-icon {
    font-size: 1.2em;
}

.collapsible-toggle {
    font-size: 1.5em;
    color: #ff6600;
    transition: transform 0.3s ease;
}

.collapsible-header[aria-expanded="true"] .collapsible-toggle {
    transform: rotate(180deg);
}

.collapsible-header.collapsed .collapsible-toggle {
    transform: rotate(0deg);
}

.collapsible-body {
    padding: 30px;
}

.collapsible-body p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 15px;
}

.surgery-image:hover {
 	box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}
.wp-block-image > img {
	    margin: auto;
    display: block;
    border-radius: 2em !important;
	color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: clamp(240px, 90vw, 600px);
    max-height: clamp(240px, 90vw, 600px);
}
.wp-block-image > img:hover, .surgery-image:hover {
	scale: 1.025;
}

.tag-label {
	display: inline-flex;
	align-items: center;
	gap: 6px; /* spazio tra icona e testo */
	border-radius: 30px;
	letter-spacing: 0.6px;
	font-weight: 600;
	background: #ddd;
	padding: 8px 12px;
	box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
	transition: all 0.3s ease;
	cursor: default;
	font-size: 0.85rem;
	color: #333;
	cursor: pointer !important;
	margin-bottom: 10px;
}

.tag-label i {
	font-size: 1rem;
	color: #3498db;
	transition: all 0.3s ease;
}

.tag-label:hover {
	background: #3498db;
	color: #fff;
	box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
	transform: translateY(-2px);
}

.tag-label:hover i {
	color: #fff;
}


.hidden {
	display: none !important;
}

/* Container per le colonne */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    margin-top: 2em;
    margin-bottom: 1em;
}

/* Singola colonna */
.wp-block-column {
    padding-left: 15px;
    padding-right: 15px;
    flex: 1 0 0%;
    box-sizing: border-box;
    min-width: 0; /* evita overflow */
}

/* Allineamenti verticali opzionali */
.wp-block-columns.align-top {
    align-items: flex-start;
}

.wp-block-columns.align-center {
    align-items: center;
}

.wp-block-columns.align-bottom {
    align-items: flex-end;
}

h4 {
    font-size: 1.5rem;
    color: var(--orange);
    text-transform: uppercase;
    font-weight: 800;
}

/* Responsive: colonne si riducono su schermi piccoli */
@media (max-width: 768px) {
    .wp-block-column {
        flex-basis: 100%;
        max-width: 100%;
    }
}



.exam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 60px;
}

.exam-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.exam-number {
    color: var(--orange);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    min-width: 50px;
}

.exam-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    padding-top: 8px;
}

@media (max-width: 992px) {
    .exam-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .exam-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 1.4rem;
    }
}

h3.wp-block-heading {
	padding-top: 0;
    padding-bottom: 0;
    font-size: 1.6em;
}


main p {
	color: #000;
	letter-spacing: 0.6px;
}


/* =============================================================================
   TIMELINE SECTIONS - Styling
   ============================================================================= */

/* Container principale della timeline */
.timeline-wrapper {
    position: relative;
    padding: 30px 0;
}

.timeline-wrapper.timeline-vertical {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-wrapper-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.timeline-wrapper-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLine {
  from {
    opacity: 0;
    height: 0;
  }
  to {
    opacity: 1;
    height: 100%;
  }
}

/* Container degli item */
.timeline-items {
    position: relative;
}

/* Singolo item della timeline */
.timeline-item {
    display: flex;
    margin-bottom: 0 !important;
    padding-top: 30px;
    padding-bottom: 20px;
    position: relative;
    animation: fadeInUp 0.6s ease-out backwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
  animation-delay: 0.5s;
}


/* Marker (dot + linea verticale) */
.timeline-marker {
	margin-top: 9px !important;
    flex-shrink: 0;
    width: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    width: 28px;
    height: 28px;
    background-color: #FF7A45;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 122, 69, 0.3);
    position: relative;
    flex-shrink: 0;
    animation: scaleIn 0.5s ease-out backwards;
}

.timeline-item:nth-child(1) .timeline-dot {
  animation-delay: 0.15s;
}

.timeline-item:nth-child(2) .timeline-dot {
  animation-delay: 0.25s;
}

.timeline-item:nth-child(3) .timeline-dot {
  animation-delay: 0.35s;
}

.timeline-item:nth-child(4) .timeline-dot {
  animation-delay: 0.45s;
}

.timeline-item:nth-child(5) .timeline-dot {
  animation-delay: 0.55s;
}

.timeline-item.timeline-completed .timeline-dot {
	padding-top: 1px;
    background-color: var(--orange);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.timeline-item.timeline-current .timeline-dot {
    background-color: var(--orange);
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.4);
    animation: pulse-timeline 2s infinite;
}

@keyframes pulse-timeline {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 2px 20px rgba(52, 152, 219, 0.7);
    }
}

.timeline-line {
    width: 3px;
    background-color: #E0E0E0;
    flex-grow: 1;
    margin-top: -76px !important;
    margin-bottom: -10px !important;
    position: relative;
    animation: slideInLine 0.8s ease-out backwards;
}

.timeline-item:nth-child(1) .timeline-line {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(2) .timeline-line {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(3) .timeline-line {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(4) .timeline-line {
  animation-delay: 0.5s;
}

/* Content */
.timeline-content {
    flex: 1;
    padding-left: 30px;
    padding-top: 5px;
    animation: fadeInUp 0.6s ease-out backwards;
}

.timeline-item:nth-child(1) .timeline-content {
  animation-delay: 0.15s;
}

.timeline-item:nth-child(2) .timeline-content {
  animation-delay: 0.25s;
}

.timeline-item:nth-child(3) .timeline-content {
  animation-delay: 0.35s;
}

.timeline-item:nth-child(4) .timeline-content {
  animation-delay: 0.45s;
}

.timeline-item:nth-child(5) .timeline-content {
  animation-delay: 0.55s;
}

.timeline-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FF7A45;
    margin-bottom: 8px;
    display: inline-block;
    background-color: #ffdabe;
    padding: 4px 12px;
    border-radius: 20px;
    animation: scaleIn 0.5s ease-out backwards;
    margin-top: -6px;
    margin-right: 3px;
}

.timeline-item:nth-child(1) .timeline-year {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(2) .timeline-year {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(3) .timeline-year {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(4) .timeline-year {
  animation-delay: 0.5s;
}

.timeline-item:nth-child(5) .timeline-year {
  animation-delay: 0.6s;
}

/* Header (title + subtitle) */
.timeline-header,
.timeline-header-btn {
    margin-bottom: 12px;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.timeline-header-btn:hover {
    opacity: 0.8;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
    animation: fadeInUp 0.6s ease-out backwards;
}

.timeline-item:nth-child(1) .timeline-title {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(2) .timeline-title {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(3) .timeline-title {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(4) .timeline-title {
  animation-delay: 0.5s;
}

.timeline-item:nth-child(5) .timeline-title {
  animation-delay: 0.6s;
}

.timeline-header-btn .timeline-title {
    flex: 1;
}

.timeline-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
    animation: fadeInUp 0.6s ease-out backwards;
}

.timeline-item:nth-child(1) .timeline-subtitle {
  animation-delay: 0.25s;
}

.timeline-item:nth-child(2) .timeline-subtitle {
  animation-delay: 0.35s;
}

.timeline-item:nth-child(3) .timeline-subtitle {
  animation-delay: 0.45s;
}

.timeline-item:nth-child(4) .timeline-subtitle {
  animation-delay: 0.55s;
}

.timeline-item:nth-child(5) .timeline-subtitle {
  animation-delay: 0.65s;
}

/* Toggle arrow */
.timeline-toggle {
    font-size: 14px;
    color: #999;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-top: 3px;
    display: inline-block;
}

.timeline-header-btn:not(.collapsed) .timeline-toggle {
    transform: rotate(-180deg);
    color: #FF7A45;
}

/* Body content */
.timeline-body {
    padding: 15px 20px;
    background-color: #f9f9f9;
    margin-top: 8px;
    animation: slideDown 0.3s ease-out;
}

.timeline-body p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #444;
    font-size: 0.95rem;
}

.timeline-body p:last-child {
    margin-bottom: 0;
}

.timeline-body ul,
.timeline-body ol {
    margin: 12px 0;
    padding-left: 20px;
}

.timeline-body li {
    margin-bottom: 6px;
    color: #444;
    line-height: 1.5;
}

.timeline-body a {
    color: #FF7A45;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.timeline-body a:hover {
    border-bottom-color: #FF7A45;
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}
/* Bootstrap collapse compatibility */
.timeline-header-btn[aria-expanded="true"] .timeline-toggle {
    transform: rotate(-180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-marker {
        width: 80px;
    }
    
    .timeline-year {
        font-size: 1rem;
        padding: 3px 8px;
    }
    
    .timeline-content {
        padding-left: 20px;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-body {
        padding: 12px 15px;
    }
    
    .timeline-wrapper-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        margin-bottom: 30px;
    }
    
    .timeline-marker {
        width: 60px;
    }
    
    .timeline-dot {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .timeline-content {
        padding-left: 15px;
    }
    
    .timeline-year {
        font-size: 0.9rem;
    }
    
    .timeline-title {
        font-size: 1rem;
    }
    
    .timeline-subtitle {
        font-size: 0.85rem;
    }
    
    .timeline-body {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}

/* =============================================================================
   QUOTE SHORTCODE - Styling
   ============================================================================= */

/* CSS Variables per colore personalizzabile */
:root {
    --quote-color: #FF7A45;
    --quote-dark: #333;
    --quote-light: #666;
    --quote-bg: #f9f9f9;
}

/* Wrapper principale */
.quote-wrapper {
    margin: 30px 0;
    padding: 0;
    border: none;
    font-style: italic;
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ============================================================================
   STILE: BLOCK (Default - Box con sfondo)
   ============================================================================ */

.quote-wrapper.quote-style-block {
    flex-direction: column;
    padding: 25px 30px;
    background-color: var(--quote-bg);
    border-left: 4px solid var(--quote-color);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.quote-wrapper.quote-style-block .quote-icon-wrapper {
    align-self: flex-start;
    margin-top: -5px;
}

/* ============================================================================
   STILE: HIGHLIGHTED (Fondo colorato)
   ============================================================================ */

.quote-wrapper.quote-style-highlighted {
    flex-direction: column;
    padding: 25px 30px;
    background: linear-gradient(135deg, 
        rgba(255, 122, 69, 0.08) 0%, 
        rgba(255, 122, 69, 0.03) 100%);
    border-left: 5px solid var(--quote-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(255, 122, 69, 0.15);
}

.quote-wrapper.quote-style-highlighted .quote-text {
    color: #1a1a1a;
    font-weight: 500;
}

/* ============================================================================
   STILE: MINIMAL (Solo testo, niente box)
   ============================================================================ */

.quote-wrapper.quote-style-minimal {
    flex-direction: row;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    margin: 20px 0;
}

.quote-wrapper.quote-style-minimal .quote-text {
    margin: 0;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--quote-dark);
}

.quote-wrapper.quote-style-minimal .quote-icon-wrapper {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================================================
   STILE: INLINE (Testo inline con icona)
   ============================================================================ */

.quote-wrapper.quote-style-inline {
    flex-direction: row;
    padding: 15px 0;
    background: none;
    border: none;
    box-shadow: none;
    gap: 15px;
}

.quote-wrapper.quote-style-inline .quote-content {
    flex: 1;
}

.quote-wrapper.quote-style-inline .quote-text {
    display: inline;
    margin: 0;
    padding: 0;
}

.quote-wrapper.quote-style-inline .quote-icon-wrapper {
    flex-shrink: 0;
}

/* ============================================================================
   STILE: SIDEBAR (Per barre laterali)
   ============================================================================ */

.quote-wrapper.quote-style-sidebar {
    flex-direction: column;
    padding: 20px;
    background-color: var(--quote-bg);
    border-left: 3px solid var(--quote-color);
    border-radius: 2px;
    margin: 15px 0;
}

.quote-wrapper.quote-style-sidebar .quote-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================================================
   STILE: CARD (Effetto tessera)
   ============================================================================ */

.quote-wrapper.quote-style-card {
    flex-direction: column;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.quote-wrapper.quote-style-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.quote-wrapper.quote-style-card .quote-text {
    font-size: 1.15rem;
    color: var(--quote-dark);
    margin-bottom: 20px;
}

/* ============================================================================
   ICONE
   ============================================================================ */

.quote-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.quote-icon {
    width: 100%;
    height: 100%;
    color: var(--quote-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.quote-wrapper:hover .quote-icon {
    opacity: 1;
}

/* ============================================================================
   CONTENUTO
   ============================================================================ */

.quote-content {
    flex: 1;
    width: 100%;
}

.quote-text {
    margin: 0 0 15px 0;
    padding: 0;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--quote-dark);
    font-style: italic;
    font-weight: 400;
}

.quote-text::before {
    content: '"';
    margin-right: 2px;
    color: var(--quote-color);
    opacity: 0.6;
}

.quote-text::after {
    content: '"';
    margin-left: 2px;
    color: var(--quote-color);
    opacity: 0.6;
}

/* ============================================================================
   ATTRIBUZIONE (Autore)
   ============================================================================ */

.quote-attribution {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.quote-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quote-author-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--quote-dark);
    font-style: normal;
}

.quote-title {
    display: block;
    font-size: 0.85rem;
    color: var(--quote-color);
    font-weight: 500;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-title + .quote-author-name {
    margin-top: 2px;
}

/* ============================================================================
   DIMENSIONI
   ============================================================================ */

.quote-wrapper.quote-size-small {
    margin: 15px 0;
}

.quote-wrapper.quote-size-small .quote-text {
    font-size: 0.95rem;
}

.quote-wrapper.quote-size-small .quote-author-name {
    font-size: 0.85rem;
}

.quote-wrapper.quote-size-medium {
    margin: 30px 0;
}

.quote-wrapper.quote-size-medium .quote-text {
    font-size: 1.1rem;
}

.quote-wrapper.quote-size-medium .quote-author-name {
    font-size: 0.95rem;
}

.quote-wrapper.quote-size-large {
    margin: 40px 0;
}

.quote-wrapper.quote-size-large .quote-text {
    font-size: 1.3rem;
    line-height: 1.8;
}

.quote-wrapper.quote-size-large .quote-author-name {
    font-size: 1.05rem;
}

.quote-wrapper.quote-size-large .quote-title {
    font-size: 0.9rem;
}

/* ============================================================================
   ALLINEAMENTO
   ============================================================================ */

.quote-wrapper.quote-align-center {
    text-align: center;
}

.quote-wrapper.quote-align-center .quote-icon-wrapper {
    align-self: center;
    margin: 0 auto 15px;
}

.quote-wrapper.quote-align-center .quote-author {
    align-items: center;
}

.quote-wrapper.quote-align-left {
    text-align: left;
}

.quote-wrapper.quote-align-left .quote-icon-wrapper {
    align-self: flex-start;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .quote-wrapper {
        gap: 15px;
        margin: 20px 0;
    }

    .quote-wrapper.quote-style-block,
    .quote-wrapper.quote-style-highlighted,
    .quote-wrapper.quote-style-card {
        padding: 20px;
    }

    .quote-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .quote-wrapper.quote-size-large .quote-text {
        font-size: 1.15rem;
    }

    .quote-author-name {
        font-size: 0.9rem;
    }

    .quote-icon-wrapper {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .quote-wrapper {
        flex-direction: column;
        gap: 12px;
        margin: 15px 0;
    }

    .quote-wrapper.quote-style-block,
    .quote-wrapper.quote-style-highlighted,
    .quote-wrapper.quote-style-card {
        padding: 15px;
        border-left-width: 3px;
    }

    .quote-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .quote-wrapper.quote-size-large .quote-text {
        font-size: 1rem;
    }

    .quote-author-name {
        font-size: 0.85rem;
    }

    .quote-title {
        font-size: 0.75rem;
    }

    .quote-icon-wrapper {
        width: 30px;
        height: 30px;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.quote-wrapper {
    outline: none;
}

.quote-wrapper:focus-visible {
    outline: 2px solid var(--quote-color);
    outline-offset: 4px;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .quote-wrapper {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .quote-icon-wrapper {
        display: none;
    }
}

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

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-card {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
}

.value-card:nth-child(1) {
  animation-delay: 0.1s;
}

.value-card:nth-child(2) {
  animation-delay: 0.2s;
}

.value-card:nth-child(3) {
  animation-delay: 0.3s;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.value-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  animation: scaleIn 0.5s ease-out backwards;
}

.value-card:nth-child(1) .value-icon {
  animation-delay: 0.15s;
}

.value-card:nth-child(2) .value-icon {
  animation-delay: 0.25s;
}

.value-card:nth-child(3) .value-icon {
  animation-delay: 0.35s;
}

.value-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  animation: fadeInUp 0.6s ease-out backwards;
}

.value-card:nth-child(1) .value-title {
  animation-delay: 0.2s;
}

.value-card:nth-child(2) .value-title {
  animation-delay: 0.3s;
}

.value-card:nth-child(3) .value-title {
  animation-delay: 0.4s;
}

.value-desc {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out backwards;
}

.value-card:nth-child(1) .value-desc {
  animation-delay: 0.25s;
}

.value-card:nth-child(2) .value-desc {
  animation-delay: 0.35s;
}

.value-card:nth-child(3) .value-desc {
  animation-delay: 0.45s;
}

.wp-block-heading {
	padding-top: 2em;
	padding-bottom: 0.2em;
}

.team-content {
	padding: 1em 0em 0em 0em !important;
}
.team-actions .btn {
	margin-bottom: -15px;
}

.contacts-style-buttons .contact-link, .contacts-style-cards .contact-link, .contacts-style-sidebar .contact-link {
	background: var(--orange) !important;
	margin-top: 0.4em;
}


/* MOBILE FIRST */
.personale-header {
	padding-top: 2em;
	display: block !important;
}

.personale-text {
	text-align: center;
}

.personale-caption {
	margin-top: 8px;
	font-size: 1rem;
	opacity: 0.8;
}

.personale-image {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	margin: 20px auto 0;
}

/* TABLET + DESKTOP */
@media (min-width: 768px) {
	.personale-header {
		display: grid !important;
		grid-template-columns: 1.3fr 0.7fr;
		align-items: center;
		column-gap: 48px;
	}

	.personale-text {
		text-align: left;
	}

	.personale-image {
		max-width: 420px;
		margin: 0 auto;
	}
}


@media (max-width: 768px) {
	h1, h1.personale-title {
		font-size: 2.0em !important;
	}
	.personale-header {
		padding-top: 80px;
	}	
}



.personale-image-wrap {
	position: relative;
	flex-shrink: 0;        /* già presente se usi flexbox */
}

.personale-image-wrap::after {
	content: '';
    position: absolute;
    bottom: -7px;
    right: -8px;
    width: 100%;
    height: 60%;
    border-bottom: 17px solid #ff6600;
    border-right: 17px solid #ff6600;
    border-bottom-right-radius: 41px;
    opacity: 1;
    pointer-events: none;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
	background: var(--orange) !important;
}
.cookie-consent-btns-cont {
	display:flex;
	gap:8px;
}
@media (max-width: 767px) {
	.cookie-consent-btns-cont {
		display:grid;
	}
	.cookie-consent-btns-cont > button {
		scale: 0.92;
	}
}

.article-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}