/* ==========================================================================
   DOTT.SSA PAOLA MASELLI - PSICOLOGA
   Foglio di Stile Principale - HTML5, CSS3, PHP
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variabili CSS & Reset
   -------------------------------------------------------------------------- */
:root {
    --primary: #2b394a;
    --primary-dark: #1c2733;
    --primary-light: #41556b;
    --accent-mauve: #435985;
    --accent-mauve-hover: #48385d;
    --accent-mauve-light: #f3eef8;
    --accent-sage: #52796f;
    --accent-sage-light: #e8f0ec;
    --accent-gold: #bfa15f;
    --bg-warm: #faf7f2;
    --bg-warm-alt: #f4efe6;
    --bg-card: #ffffff;
    --text-main: #2a343d;
    --text-muted: #5e6d7a;
    --text-light: #8895a2;
    --border-color: #e5dfd5;
    --border-light: #efebe4;
    --font-heading: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
    --font-subheading: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 2px 8px rgba(43, 57, 74, 0.05);
    --shadow-md: 0 6px 20px rgba(43, 57, 74, 0.08);
    --shadow-lg: 0 14px 35px rgba(43, 57, 74, 0.12);
    --shadow-hover: 0 18px 40px rgba(93, 74, 117, 0.16);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --max-width: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-warm);
    line-height: 1.7;
    font-size: 1.05rem;
    overflow-x: hidden;
}

/* Accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--accent-mauve);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 20px;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.container-narrow {
    max-width: 860px;
}

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

a {
    color: var(--accent-mauve);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-mauve-hover);
}

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   2. Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    margin-bottom: 18px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

p.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--primary);
    font-weight: 400;
}

.text-subheading {
    font-family: var(--font-subheading);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--accent-mauve);
}

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

.section-header h2 {
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-mauve);
    margin: 14px auto 0;
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   3. Pulsanti & UI Elements
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--accent-mauve);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(93, 74, 117, 0.25);
}

.btn-primary:hover {
    background-color: var(--accent-mauve-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(93, 74, 117, 0.35);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-mauve);
    color: var(--accent-mauve) !important;
}

.btn-outline:hover {
    background-color: var(--accent-mauve);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-nav-cta {
    background-color: var(--accent-mauve);
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.btn-nav-cta:hover {
    background-color: var(--accent-mauve-hover);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   4. Top Bar
   -------------------------------------------------------------------------- */
.topbar {
    background-color: #f7f4ed;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 7px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-info a {
    color: var(--text-muted);
}

.topbar-info a:hover {
    color: var(--accent-mauve);
}

.topbar-info .divider {
    color: var(--border-color);
}

.topbar-albo {
    font-weight: 500;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   5. Site Header & Navigazione
   -------------------------------------------------------------------------- */
.site-header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    background-color: #ffffff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

/* Main Nav */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--primary);
    padding: 8px 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

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

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

/* Pill Button Arte */
.nav-pill-arte {
    background-color: #3b6ea8;
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
}

.nav-pill-arte::after {
    display: none;
}

.nav-pill-arte:hover,
.nav-pill-arte.active {
    background-color: #2b5485;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.arrow-down {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.has-dropdown:hover .arrow-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

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

.dropdown-link {
    display: block;
    padding: 9px 20px;
    font-size: 0.94rem;
    color: var(--primary);
    transition: var(--transition);
}

.dropdown-link:hover,
.dropdown-link.active {
    background-color: var(--bg-warm-alt);
    color: var(--accent-mauve);
    padding-left: 24px;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* --------------------------------------------------------------------------
   6. Hero Section (Home)
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(90, 120, 160, 0.92), rgba(135, 160, 195, 0.88)),
                url('../img/banner-header.png') center/cover no-repeat;
    color: #ffffff;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-claim-box {
    background: rgba(43, 62, 110, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 30px;
    backdrop-filter: blur(8px);
}

.hero-claim-title {
    color: #ffffff;
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-hero-continua {
    background-color: var(--accent-mauve);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px 34px;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-continua:hover {
    background-color: #ffffff;
    color: var(--accent-mauve) !important;
    transform: translateY(-2px);
}

/* Hero Carousel: "Le 3 foto scorrono una dietro l'altra" */
.hero-slider-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4 / 3.4;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.4);
    background: #000000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.04);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #ffffff;
    padding: 20px 20px 14px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.03em;
}

/* Dots and Slider Label */
.hero-slider-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.hero-slider-badge {
    margin-top: 10px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   7. Sezione "Il mio modo di lavorare"
   -------------------------------------------------------------------------- */
.section-lavoro {
    padding: 90px 0;
    background-color: var(--bg-warm);
}

.lavoro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.lavoro-content h2 {
    color: var(--primary);
    margin-bottom: 24px;
}

.lavoro-text p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    text-align: justify;
}

/* Card Visual "Un percorso, insieme" */
.un-percorso-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.un-percorso-img-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.timeline-step {
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    padding: 16px;
    border-left: 3px solid var(--accent-mauve);
}

.step-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-mauve);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.step-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.un-percorso-quote {
    margin-top: 24px;
    text-align: center;
    font-family: var(--font-subheading);
    font-size: 1.18rem;
    font-style: italic;
    color: var(--accent-mauve);
    border-top: 1px dashed var(--border-color);
    padding-top: 16px;
}

/* --------------------------------------------------------------------------
   8. Sezione Area Clinica (Ambiti di intervento & Servizi)
   -------------------------------------------------------------------------- */
.section-clinica-overview {
    padding: 90px 0;
    background-color: var(--bg-warm-alt);
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.clinica-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.clinica-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-mauve);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background-color: var(--accent-mauve-light);
    color: var(--accent-mauve);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-mauve);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-link:hover {
    gap: 10px;
    color: var(--accent-mauve-hover);
}

/* --------------------------------------------------------------------------
   9. Sezione Ultimi Articoli
   -------------------------------------------------------------------------- */
.section-articoli {
    padding: 90px 0;
    background-color: var(--bg-warm);
}

.articoli-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.articolo-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.articolo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-mauve);
}

.articolo-thumb {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #2b394a;
}

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

.articolo-card:hover .articolo-thumb img {
    transform: scale(1.06);
}

.articolo-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.articolo-tag {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-mauve);
    margin-bottom: 8px;
}

.articolo-title {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 12px;
}

.articolo-excerpt {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --------------------------------------------------------------------------
   10. Sezione Psicologia e Arte Callout
   -------------------------------------------------------------------------- */
.section-arte-callout {
    padding: 85px 0;
    background: linear-gradient(135deg, #372a48 0%, #4f3b64 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.arte-callout-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.arte-callout-text h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.arte-callout-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 26px;
}

.btn-arte-scopri {
    background-color: #ffffff;
    color: var(--accent-mauve) !important;
    font-weight: 700;
    padding: 14px 34px;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-arte-scopri:hover {
    background-color: var(--bg-warm);
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.arte-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.arte-preview-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.arte-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.arte-preview-item:hover img {
    transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   11. Sezione Pensieri e Riflessioni su Jung
   -------------------------------------------------------------------------- */
.section-jung {
    padding: 90px 0;
    background-color: var(--bg-warm);
}

.jung-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.jung-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.jung-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-mauve);
}

.jung-quote-icon {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    color: var(--accent-mauve);
    opacity: 0.3;
    margin-bottom: -10px;
}

.jung-quote-text {
    font-family: var(--font-subheading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary);
    line-height: 1.5;
    margin-bottom: 18px;
}

.jung-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-mauve);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.jung-image-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

/* --------------------------------------------------------------------------
   12. Pagine Interne: Hero Banner Comune
   -------------------------------------------------------------------------- */
.page-banner {
    background: linear-gradient(135deg, rgba(74, 107, 171, 0.92), rgba(110, 140, 196, 0.88)),
                url('../img/banner-header.png') center/cover no-repeat;
    color: #ffffff;
    padding: 65px 0;
    text-align: center;
}

.page-banner h1 {
    color: #ffffff;
    margin-bottom: 10px;
}

.breadcrumbs {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a {
    color: #ffffff;
    text-decoration: underline;
}

.breadcrumbs a:hover {
    color: var(--bg-warm);
}

.breadcrumbs .sep {
    margin: 0 8px;
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   13. Pagina Biografia / Chi Sono
   -------------------------------------------------------------------------- */
.section-biografia-main {
    padding: 80px 0;
}

.biografia-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 50px;
    align-items: start;
}

.bio-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bio-photo-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.bio-photos-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
}

.bio-photo-sub {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.bio-text-wrap h2 {
    color: var(--primary);
    margin-bottom: 24px;
}

.bio-text-wrap p {
    font-size: 1.05rem;
    margin-bottom: 18px;
    text-align: justify;
}

.formazione-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-top: 36px;
}

.formazione-box h3 {
    color: var(--accent-mauve);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.formazione-list {
    margin-bottom: 24px;
}

.formazione-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.formazione-list li::before {
    content: '•';
    color: var(--accent-mauve);
    font-size: 1.4rem;
    position: absolute;
    left: 8px;
    top: -4px;
}

/* --------------------------------------------------------------------------
   14. Pagina Modalità di Svolgimento (Al posto delle FAQ)
   -------------------------------------------------------------------------- */
.modalita-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    margin-bottom: 60px;
}

.modalita-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 38px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    border-top: 5px solid var(--accent-mauve);
}

.modalita-card.online {
    border-top-color: #3b6ea8;
}

.modalita-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.modalita-card.presenza .modalita-badge {
    background: var(--accent-mauve-light);
    color: var(--accent-mauve);
}

.modalita-card.online .modalita-badge {
    background: #e8f0fe;
    color: #2b5485;
}

.modalita-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.modalita-list {
    margin: 20px 0;
}

.modalita-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.98rem;
}

.modalita-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent-sage);
}

/* FAQ Accordion */
.faq-wrap {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

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

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 20px 0;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-mauve);
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--accent-mauve);
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    color: var(--text-muted);
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

/* --------------------------------------------------------------------------
   15. Pagina Galleria Arte & Pittura
   -------------------------------------------------------------------------- */
.arte-intro-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 36px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 50px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

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

.gallery-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.gallery-info {
    padding: 20px;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.gallery-meta {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Modal Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.lightbox-content {
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: zoomIn 0.3s ease;
}

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

.lightbox-img-wrap {
    width: 100%;
    max-height: 60vh;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img-wrap img {
    max-height: 60vh;
    width: auto;
    object-fit: contain;
}

.lightbox-details {
    padding: 24px 30px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   16. Pagina Contatti & Form di Richiesta
   -------------------------------------------------------------------------- */
.section-contatti {
    padding: 80px 0;
}

.contatti-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.recapiti-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 38px 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.recapiti-box h3 {
    color: var(--accent-mauve);
    margin-bottom: 24px;
}

.contact-card-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-mauve-light);
    color: var(--accent-mauve);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-info h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--primary);
}

.contact-card-info p {
    margin-bottom: 0;
    font-size: 0.98rem;
    color: var(--text-muted);
}

/* Modulo Richiesta Informazioni */
.form-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 38px 34px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.form-box h3 {
    color: var(--accent-mauve);
    margin-bottom: 8px;
}

.form-box p.form-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.form-label .req {
    color: #e53e3e;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    color: var(--text-main);
    background-color: var(--bg-warm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-mauve);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(93, 74, 117, 0.15);
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-check input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--accent-mauve);
    width: 16px;
    height: 16px;
}

/* Status message */
.form-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: none;
}

.form-alert.success {
    display: block;
    background-color: #def7ec;
    color: #03543f;
    border: 1px solid #bcf0da;
}

.form-alert.error {
    display: block;
    background-color: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}

/* Map Section */
.map-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 400px;
    width: 100%;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--primary-dark);
    color: #cbd5e1;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    padding: 70px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 1.1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    height: 52px;
    width: auto;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.footer-bio {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.badge-albo {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-heading {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-mauve);
}

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

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: #94a3b8;
}

.footer-contact-list svg {
    flex-shrink: 0;
    color: var(--accent-mauve-light);
    margin-top: 3px;
}

.footer-contact-list strong {
    color: #e2e8f0;
}

.contact-link {
    color: #cbd5e1;
}

.contact-link:hover {
    color: #ffffff;
}

.text-sm {
    font-size: 0.82rem;
    color: #64748b;
}

.footer-bottom {
    background-color: #121a24;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: #64748b;
    margin-bottom: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-legal-links a {
    color: #64748b;
}

.footer-legal-links a:hover {
    color: #cbd5e1;
}

.footer-legal-links .sep {
    color: #334155;
}

/* --------------------------------------------------------------------------
   18. WhatsApp Floating Button & Back to Top
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 990;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #1f2937;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.back-to-top {
    position: fixed;
    bottom: 26px;
    left: 26px;
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 900;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-mauve);
    color: #ffffff;
    border-color: var(--accent-mauve);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 16px 0;
    z-index: 995;
    display: none;
}

.cookie-banner.is-active {
    display: block;
}

.cookie-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-text p {
    margin-bottom: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

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

.btn-cookie:hover {
    background-color: var(--accent-mauve);
}

/* --------------------------------------------------------------------------
   19. Media Queries (Responsive)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid,
    .lavoro-grid,
    .arte-callout-inner,
    .biografia-grid,
    .contatti-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cards-grid-3,
    .gallery-grid,
    .jung-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 868px) {
    .topbar {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 40px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.is-open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 16px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 10px 0;
        font-size: 1.05rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 15px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .has-dropdown.is-open .dropdown-menu {
        display: block;
    }

    .btn-nav-cta {
        display: inline-block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .timeline-steps,
    .cards-grid-2,
    .cards-grid-3,
    .articoli-grid,
    .modalita-grid,
    .gallery-grid,
    .jung-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
    }
}