/*
Theme Name: Zunino-Picco-2026
Theme URI: https://zuninopicco.com
Author: Studio Legale Zunino-Picco
Author URI: https://zuninopicco.com
Description: Tema WordPress personalizzato per Studio Legale Zunino-Picco specializzato in diritto tributario e doganale
Version: 1.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zunino-picco
*/

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: rgb(31, 91, 165);
    --dark-gray: #2c3e50;
    --light-gray: #f8f9fa;
    --text-color: #444;
    --bs-border-radius: 0;
}

html, body {
    scroll-behavior: smooth;
	
}

body {
    color: var(--text-color);
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.2rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-gray);
    font-weight: 300;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    text-transform: uppercase;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: rgba(31, 91, 165, 0.8);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: rgba(31, 91, 165, 0.9);
    border-color: rgba(31, 91, 165, 0.9);
    color: white;
}

.navbar {
    background: linear-gradient(135deg, rgba(20, 60, 130, 1) 0%, rgba(15, 45, 100, 1) 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.3rem;
    color: white !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: white !important;
    margin-left: 1.5rem;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Animazioni solo per link senza dropdown */
.navbar-nav .nav-item:not(.dropdown) .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.6);
    transition: width 0.3s ease;
}

.navbar-nav .nav-item:not(.dropdown) .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-nav .nav-item:not(.dropdown) .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-item:not(.dropdown) .nav-link.active {
    color: white !important;
    font-weight: 600;
}

.navbar-nav .nav-item:not(.dropdown) .nav-link.active::after {
    width: 100%;
    height: 3px;
    background-color: white;
}

/* Voci dropdown mantengono stile originale */
.navbar-nav .dropdown .nav-link {
    color: white !important;
}

.navbar-nav .dropdown .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-contact {
    color: white;
    font-weight: 600;
    margin-left: auto;
    font-size: 1.15rem;
}

/* Hamburger menu personalizzato */
.navbar-toggler {
    border: 2px solid white;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(255, 255, 255)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5rem;
    height: 1.5rem;
}

.navbar-toggler[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(255, 255, 255)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Custom Dropdown Styling */
.navbar-nav .dropdown-menu {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(20, 60, 130, 0.98) 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(31, 91, 165, 0.3);
    border-radius: 0;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    display: block !important;
}

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

.navbar-nav .dropdown-menu .dropdown-item {
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .dropdown-menu .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: white;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding-left: 2rem;
}

.navbar-nav .dropdown-menu .dropdown-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.navbar-nav .dropdown-menu .dropdown-item:active,
.navbar-nav .dropdown-menu .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.navbar-nav .nav-link.dropdown-toggle {
    position: relative;
}

.navbar-nav .nav-link.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: 0.15em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown:hover .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Disable Bootstrap click behavior on desktop */
@media (min-width: 992px) {
    .navbar-nav .dropdown-toggle {
        pointer-events: none;
    }
    
    .navbar-nav .dropdown {
        pointer-events: auto;
    }
}

/* Mobile dropdown adjustments */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 0;
        box-shadow: none;
        background: linear-gradient(135deg, rgba(31, 91, 165, 0.95) 0%, rgba(20, 60, 130, 0.95) 100%);
        display: none !important;
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item {
        padding-left: 2rem;
    }
    
    .navbar-nav .dropdown-toggle {
        pointer-events: auto;
    }
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(31, 91, 165, 0.9) 100%);
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 106px);
    min-height: 500px;
    overflow: hidden;
    color: white;
    text-align: center;
}

@media (max-width: 991px) {
    .hero-slider {
        height: calc(100vh - 90px);
        min-height: 400px;
    }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slider-slide.active {
    opacity: 1;
    z-index: 10;
}

.slidersub {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    text-transform: uppercase;
    font-size: 1.8rem !important;
    font-weight:300 !important;
}

.slider-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slider-overlay {
    display: none;
}

.slider-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 20;
}

.slider-content h1 {
    color: white;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.99);
}

.slider-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.6rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.95);
}

.slider-content .slider-subtitle {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.95);
}

/* Slider indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 12px;
}

.slider-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-indicators .indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.slider-indicators .indicator.active {
    background-color: white;
}

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

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

.slider-slide.active .slider-content h1 {
    animation: slideUp 0.8s ease-out 0.2s forwards;
}

.slider-slide.active .slider-content .mb-4 {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.slider-slide.active .slider-content .slider-subtitle {
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.slider-slide.active .slider-content .btn-light-custom {
    animation: slideUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

.slider-slide .slider-content h1,
.slider-slide .slider-content .mb-4,
.slider-slide .slider-content .slider-subtitle,
.slider-slide .slider-content .btn-light-custom {
    animation: none;
    opacity: 0;
}

.btn-light-custom {
	    background-color: white;
    color: var(--primary-color);
    border-color: white;

    border: 2px solid white;
    padding: 0.75rem 2rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-light-custom:hover {

    color: var(--primary-color);
    border-color: white;
	    background-color: transparent;
    color: white;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

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

.section-subtitle {
    color: #777;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.2) 0%, rgba(31, 91, 165, 0.12) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #666;
}

.about-section .btn-primary {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
}

.about-section .btn-primary:hover {
    background-color: rgba(31, 91, 165, 0.9);
    border-color: rgba(31, 91, 165, 0.9);
}

.about-image {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.practice-areas {
    position: relative;
    padding: 5rem 0;
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-attachment: scroll;
}

.practice-areas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--section-bg, url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?w=1920&h=1080&fit=crop')) center/cover no-repeat;
    background-size: cover;
    z-index: 0;
    transform: scale(1);
}

.practice-areas.is-visible::before {
    animation: sectionZoom 5000ms ease-out forwards;
}

.practice-areas::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.75) 0%, rgba(20, 60, 130, 0.75) 100%);
    z-index: 1;
}

.practice-areas .container-lg {
    position: relative;
    z-index: 2;
}

@keyframes sectionZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.practice-areas .section-title {
    color: white;
}

.practice-areas .section-title::after {
    background-color: white;
}

.practice-areas .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.practice-card {
    background-color: white;
    padding: 0;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.practice-card-image {
    width: 100%;
    height: 267px;
    object-fit: cover;
    display: block;
}

.practice-card-content {
    padding: 2rem;
    padding-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.practice-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.practice-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.practice-card a {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.15rem;
    text-decoration: underline;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

.practice-card a:hover {
    opacity: 0.6;
}

.practice-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.professionals-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.1) 0%, rgba(31, 91, 165, 0.05) 100%);
}

.professionals-section .section-title {
    color: var(--dark-gray);
}

.professionals-section .section-subtitle {
    color: #777;
}

.professional-card {
    background-color: white;
    padding: 0;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.professional-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.professional-content {
    padding: 2rem;
    padding-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.professional-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.professional-role {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.professional-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.professional-card a {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.15rem;
    text-decoration: underline;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

.professional-card a:hover {
    opacity: 0.6;
}

.professional-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-top-color: rgba(31, 91, 165, 0.7);
}

.news-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.1) 0%, rgba(31, 91, 165, 0.05) 100%);
}

.news-card {
    background: rgb(222, 238, 255);
    color: rgba(20, 60, 130, 1);
    padding: 0;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.news-card-thumb {
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.news-card-body {
    padding: 1.5rem;
    padding-bottom: 3.5rem;
    flex-grow: 1;
}

.news-card h4 {
    color: rgba(20, 60, 130, 1);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.news-category-label {
    display: block;
    color: rgba(20, 60, 130, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.news-card p {
    color: rgba(15, 45, 100, 0.85);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.news-card .news-card-link {
    color: rgba(20, 60, 130, 1);
    font-weight: bold;
    font-size: 1.15rem;
    text-decoration: underline;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

.news-card a:not(.news-card-link) {
    color: rgba(20, 60, 130, 1);
    font-weight: bold;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.news-card a:hover {
    opacity: 0.6;
}

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

/* News cards fade-in con delay */
.news-card.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.news-card.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.newsletter-section {
    position: relative;
    padding: 4rem 0;
    text-align: center;
    color: white;
    overflow: hidden;
    background-attachment: scroll;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--section-bg, url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?w=1920&h=1080&fit=crop')) center/cover no-repeat;
    background-size: cover;
    z-index: 0;
    transform: scale(1);
}

.newsletter-section.is-visible::before {
    animation: sectionZoom 5000ms ease-out forwards;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.85) 0%, rgba(20, 60, 130, 0.85) 100%);
    z-index: 1;
	opacity:0.5;
}

.newsletter-section .container-lg {
    position: relative;
    z-index: 2;
}

.newsletter-section h2 {
    color: white;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.95);
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border: none;
    font-size: 0.95rem;
    background-color: white;
    color: #333;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
}

.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.1) 0%, rgba(31, 91, 165, 0.05) 100%);
}

/* Contact Cards Row */
.contact-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-card {
    background-color: white;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.contact-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-card-header h4 {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    text-transform: uppercase;
}

.contact-card p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.contact-card a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

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

/* Contact Form Wrapper */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 991px) {
    .contact-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .contact-cards-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
}

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

.form-control {
    border-radius: 0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(31, 91, 165, 0.25);
}

/* Form contatti - Bordi e placeholder azzurri scuri */
.contact-section .form-control,
.contact-form .form-control,
.contact-form-wrapper .form-control {
    border: 2px solid rgba(31, 91, 165, 0.5);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.contact-section .form-control::placeholder,
.contact-form .form-control::placeholder,
.contact-form-wrapper .form-control::placeholder {
    color: rgba(31, 91, 165, 0.75);
    font-weight: 400;
    font-size: 1.05rem;
}

.contact-section .form-control:focus,
.contact-form .form-control:focus,
.contact-form-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(31, 91, 165, 0.15);
    background-color: rgba(31, 91, 165, 0.02);
}

.contact-section .form-control:hover,
.contact-form .form-control:hover,
.contact-form-wrapper .form-control:hover {
    border-color: rgba(31, 91, 165, 0.7);
}

/* Cloudflare Turnstile centering */
.cf-turnstile {
    margin: 0 auto;
    display: table;
}

/* Studio Page Sections */
.studio-section-light {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.05) 0%, rgba(31, 91, 165, 0.1) 100%);
}

.studio-section-light p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.studio-section-medium {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.15) 0%, rgba(31, 91, 165, 0.2) 100%);
}

.studio-section-medium p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.team-card {
    background: white;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-content {
    padding: 2rem;
    text-align: center;
}

.team-content h3 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.section-title-white {
    color: white;
}

.section-title-white::after {
    background-color: white;
}

.map-section {
    position: relative;
    width: 100%;
    height: 45vh;
    max-height: 45vh;
    overflow: hidden;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: hue-rotate(180deg) saturate(120%) brightness(95%);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 91, 165, 0.08);
    pointer-events: none;
    z-index: 1;
}

.footer {
    background: linear-gradient(135deg, rgba(20, 60, 130, 1) 0%, rgba(15, 45, 100, 1) 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-content > div {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.footer.is-visible .footer-content > div:nth-child(1) {
    animation: fadeIn 0.6s ease forwards 0.133s;
}

.footer.is-visible .footer-content > div:nth-child(2) {
    animation: fadeIn 0.6s ease forwards 0.266s;
}

.footer.is-visible .footer-content > div:nth-child(3) {
    animation: fadeIn 0.6s ease forwards 0.399s;
}

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

.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand-text {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
}

.footer h6 {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.footer-newsletter h6 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-newsletter p {
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-newsletter-form input {
    padding: 0.6rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.footer-newsletter-form button {
    padding: 0.6rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter-form button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

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

.footer-bottom a {
    color: white;
    text-decoration: underline;
}

.footer-bottom a:hover {
    opacity: 0.8;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
    background-color: rgba(31, 91, 165, 0.9);
    transform: translateY(-3px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Fade-in animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer non deve muoversi verticalmente */
.footer.fade-in-section {
    transform: none;
}

.footer.fade-in-section.is-visible {
    transform: none;
}

/* Page header for internal pages */
.page-header {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 9rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: none !important;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: var(--header-bg-image);
    opacity: 0;
    transform: scale(1);
    animation: headerImageFade 500ms ease-out forwards, headerImageZoom 5000ms ease-out forwards;
    z-index: 0;
}

@keyframes headerImageFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes headerImageZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.85) 0%, rgba(20, 60, 130, 0.85) 100%);
    opacity: 0.2;
    z-index: 1;
}

.page-header .container-lg {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.page-header .role {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.page-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.content-section {
    padding: 3rem 0;
}

.ambito-section {
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.1) 0%, rgba(31, 91, 165, 0.05) 100%);
}

/* Service cards for internal pages */
.service-card {
    background-color: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid transparent;
    color: var(--text-color);
}

.service-card h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.service-card ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.7;
}

.service-card ul li:before {
    content: 'Ã¢â‚¬â€œ';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-left-color: var(--primary-color);
}

/* Profile page styles */
.profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.profile-image-container {
    position: relative;
}

.profile-image {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.profile-content {
    background-color: white;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.profile-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.profile-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.info-card {
    background-color: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid transparent;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease;
}

.info-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.info-card ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.7;
}

.info-card ul li:before {
    content: 'Ã¢â‚¬â€œ';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-left-color: var(--primary-color);
}

.contact-info-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(20, 60, 130, 0.95) 100%);
    color: white;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.contact-info-box h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.contact-info-box p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.contact-info-box a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.contact-info-box a:hover {
    opacity: 0.8;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    color: white;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.documents-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.doc-link {
    flex: 1;
    background-color: white;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
}

.doc-link i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.doc-link h4 {
    color: var(--dark-gray);
    font-size: 1rem;
    margin-bottom: 0;
}

.doc-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(20, 60, 130, 0.98) 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Studio page sections */
.studio-section-light {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.08) 0%, rgba(31, 91, 165, 0.04) 100%);
}

.studio-section-dark {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.15) 0%, rgba(31, 91, 165, 0.08) 100%);
}

.studio-content {
    max-width: 900px;
    margin: 0 auto;
}

.studio-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Related news section */
.related-news-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.related-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--section-bg, url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?w=1920&h=1080&fit=crop')) center/cover no-repeat;
    background-size: cover;
    z-index: 0;
    transform: scale(1);
}

.related-news-section.is-visible::before {
    animation: sectionZoom 5000ms ease-out forwards;
}

.related-news-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 60, 130, 0.65) 0%, rgba(15, 45, 100, 0.6) 100%);
    z-index: 1;
}

.related-news-section .container-lg {
    position: relative;
    z-index: 2;
}

.related-news-section .section-title-white {
    color: white;
}

.related-news-section .section-title-white::after {
    background-color: white;
}

/* News pagination */
.news-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(31, 91, 165, 0.2);
}

/* News Filters */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
    list-style: none;
    padding: 0;
}

.news-filters li {
    display: inline-block;
}

.filter-pill {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-pill:hover {
    background-color: rgba(31, 91, 165, 0.1);
    color: var(--primary-color);
}

.filter-pill.active {
    background-color: var(--primary-color);
    color: white;
}

/* News item filter transition */
.news-item {
    transition: opacity 0.3s ease;
}

.pagination-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: 600;
    text-decoration: none;
}

.pagination-btn:hover {
    background-color: rgba(31, 91, 165, 0.9);
    color: white;
    transform: translateY(-2px);
}

.pagination-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

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

.page-info {
    color: #666;
    font-weight: 500;
}

/* Lawyer cards */
.lawyer-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lawyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.lawyer-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.lawyer-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lawyer-card-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.lawyer-role {
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.lawyer-card-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.lawyer-card-content .btn {
    align-self: flex-start;
    margin-top: auto;
}


@media (max-width: 1200px) {
.navbar-contact {display: none !important;}
}

@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content > div {
        text-align: center;
    }
    
    .footer-content > div:not(:last-child) {
        padding-bottom: 2rem;
        margin-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

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

    .hero p {
        font-size: 1rem;
    }

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

    .navbar-contact {
        margin-left: 0;
        display: block;
        margin-top: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#cookie-banner.cookie-banner-visible {
    opacity: 1;
    visibility: visible;
}

.cookie-banner-content {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(20, 60, 130, 0.98) 100%);
    color: white;
    padding: 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text {
    flex: 1;
    max-width: 800px;
}

.cookie-banner-text p {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.cookie-banner-text p:last-child {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.cookie-banner-text strong {
    font-size: 1.1rem;
    color: white;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.875rem 2rem;
    border: 2px solid white;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.cookie-btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-btn-secondary {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
}

.cookie-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Map Placeholder quando cookie non accettati */
.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 91, 165, 0.1) 0%, rgba(31, 91, 165, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
}

.map-placeholder-content {
    max-width: 400px;
}

.map-placeholder-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.map-placeholder-content h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.map-placeholder-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
    }

    .cookie-banner-text {
        max-width: 100%;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        padding: 1rem;
    }
}
/* ============================================
   STUDIO GALLERY + LIGHTBOX
============================================ */

.studio-gallery-section {
    padding: 4rem 0;
    background-color: #fff;
}

.studio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.studio-gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.studio-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.studio-gallery-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.studio-gallery-item:hover img {
    transform: scale(1.08);
}

@media (max-width: 991px) {
    .studio-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .studio-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Lightbox */
.zp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 60, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zp-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.zp-lightbox-stage {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zp-lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.zp-lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10000;
}

.zp-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.zp-lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.zp-lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.zp-lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

.zp-lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

@media (max-width: 700px) {
    .zp-lightbox-prev {
        left: 0.5rem;
    }
    .zp-lightbox-next {
        right: 0.5rem;
    }
    .zp-lightbox-btn {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

/* ============================================
   DOGANALISTA PILL BADGE
============================================ */

.doganalista-pill {
    display: inline-block;
    background: rgba(20, 60, 130, 1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
}

/* Variant for dark backgrounds (page header on single post) */
.doganalista-pill-light {
    background: rgba(255, 255, 255, 0.95);
    color: rgba(20, 60, 130, 1);
    margin-top: 0.75rem;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}