/* ===================================================================
   PENNISI & PARTNERS - APPROCCIO ED ESPERIENZE PAGE STYLES
   Stili specifici per la pagina Approccio ed Esperienze
   =================================================================== */

/* ===== HEADER SPECIFICO PER APPROCCIO ===== */
body:has(.approccio-hero) .header {
    background: var(--primary-red);
    border-bottom: none;
}

body:has(.approccio-hero) .header .logo img {
    filter: brightness(0) invert(1);
}

body:has(.approccio-hero) .header .hamburger span {
    background: #ffffff;
}

/* ===== SEZIONE 1: HERO ===== */
.approccio-hero {
    position: relative;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 140px;
}

.approccio-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.approccio-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.approccio-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(26, 71, 42, 0.85) 100%
    );
}

.approccio-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 0 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.approccio-hero-badge {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.approccio-hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.approccio-title-line {
    display: block;
    overflow: hidden;
}

.approccio-hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== SEZIONI GENERALI ===== */
.approccio-section {
    padding: 100px 0;
    position: relative;
}

.approccio-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.approccio-grid-reverse {
    direction: rtl;
}

.approccio-grid-reverse > * {
    direction: ltr;
}

.approccio-section-content {
    padding-right: 40px;
}

.approccio-grid-reverse .approccio-section-content {
    padding-right: 0;
    padding-left: 40px;
}

.approccio-section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.approccio-title-center {
    text-align: center;
}

.approccio-section-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #666666;
}

.approccio-section-text p {
    margin-bottom: 20px;
}

.approccio-section-text p:last-child {
    margin-bottom: 0;
}

.approccio-text-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.approccio-highlight {
    font-weight: 600;
    color: var(--primary-red);
    font-size: 1.2rem;
    padding: 25px;
    background: rgba(147, 41, 38, 0.08);
    border-left: 4px solid var(--primary-red);
    border-radius: 0 8px 8px 0;
}

/* ===== SEZIONE INTRO ===== */
.approccio-intro {
    background: var(--light-bg);
    padding: 80px 0;
}

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

.approccio-lead-text {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.8;
    color: var(--gray);
}

.approccio-lead-text strong {
    color: var(--primary-red);
    font-weight: 600;
}

/* ===== DATE BADGE ===== */
.approccio-date-badge {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-red);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* ===== IMMAGINI SEZIONI ===== */
.approccio-section-image {
    position: relative;
}

.approccio-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.approccio-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 71, 42, 0.1) 0%,
        transparent 50%
    );
    z-index: 1;
    pointer-events: none;
}

.approccio-img {
    width: 100%;
    height: auto;
    display: block;
    will-change: transform;
    transition: transform 0.6s ease;
}

.approccio-image-wrapper:hover .approccio-img {
    transform: scale(1.03);
}

/* ===== SEZIONE NUMERI ===== */
.approccio-numeri {
    background: linear-gradient(
        135deg,
        #1a472a 0%,
        #2d5a3d 50%,
        #1a472a 100%
    );
    color: #ffffff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.approccio-numeri::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.approccio-numeri-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.approccio-numero-item {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 280px;
}

.approccio-numero-prima {
    border-color: rgba(255, 100, 100, 0.3);
}

.approccio-numero-dopo {
    border-color: rgba(100, 255, 150, 0.3);
}

.approccio-numero-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 15px;
}

.approccio-numero-value {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.approccio-numero-suffix {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
    text-transform: lowercase;
}

.approccio-numero-arrow {
    position: relative;
    z-index: 1;
}

.approccio-numero-arrow svg {
    width: 100px;
    height: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.approccio-risparmio {
    text-align: center;
    position: relative;
    z-index: 1;
}

.approccio-risparmio-label {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 10px;
}

.approccio-risparmio-value {
    display: inline-block;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #4ade80;
    text-shadow: 0 0 40px rgba(74, 222, 128, 0.4);
}

/* ===== SEZIONE PIANO ===== */
.approccio-piano {
    background: var(--light-bg);
    padding: 100px 0;
    text-align: center;
}

.approccio-piano-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--black);
}

.approccio-piano-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.approccio-piano-item {
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.approccio-piano-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.approccio-piano-number {
    display: block;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 15px;
}

.approccio-piano-label {
    display: block;
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

.approccio-piano-note {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== SEZIONE LEGALE ===== */
.approccio-legale {
    background-color: #ffffff !important;
    padding: 120px 0 !important;
    position: relative;
    z-index: 10;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px;
}

.approccio-legale-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.approccio-legale .approccio-section-title,
.approccio-legale .approccio-section-title.approccio-title-center,
.approccio-legale h2 {
    color: #1a1a1a !important;
    margin-bottom: 40px;
    visibility: visible !important;
    opacity: 1 !important;
}

.approccio-legale .approccio-section-text,
.approccio-legale .approccio-section-text.approccio-text-center,
.approccio-legale .approccio-text-center {
    color: #666666 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.approccio-legale .approccio-section-text p,
.approccio-legale p {
    margin-bottom: 25px;
    color: #666666 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.approccio-legale .approccio-section-text strong,
.approccio-legale strong {
    color: #932926 !important;
    font-weight: 600;
}

/* ===== SEZIONE FINALE ===== */
.approccio-finale {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        rgba(147, 41, 38, 0.08) 100%
    );
    padding: 120px 0;
}

.approccio-finale-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.approccio-finale-intro {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.9;
    color: var(--gray);
    margin-bottom: 60px;
}

.approccio-finale-intro strong {
    color: var(--primary-red);
}

.approccio-finale-statements {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.approccio-statement {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--black);
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.approccio-statement:last-child {
    border-bottom: none;
}

.approccio-statement-highlight {
    color: var(--primary-red);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    padding: 30px;
    background: rgba(147, 41, 38, 0.08);
    border-radius: 12px;
    border-bottom: none;
}

/* ===== SEZIONE CONTATTI ===== */
.approccio-contact {
    background: var(--light-bg);
}

/* ===== DARK MODE OVERRIDES ===== */
body.dark-mode .approccio-section-title {
    color: #ffffff;
}

body.dark-mode .approccio-section-text {
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .approccio-highlight {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .approccio-image-wrapper {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

body.dark-mode .approccio-intro {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .approccio-lead-text {
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .approccio-piano {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .approccio-piano-title {
    color: #ffffff;
}

body.dark-mode .approccio-piano-item {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .approccio-piano-label,
body.dark-mode .approccio-piano-note {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .approccio-finale {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(147, 41, 38, 0.2) 100%
    );
}

body.dark-mode .approccio-finale-intro {
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .approccio-statement {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .approccio-statement-highlight {
    background: rgba(147, 41, 38, 0.3);
    color: #ffffff;
}

body.dark-mode .approccio-contact {
    background: #932926;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .approccio-section-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .approccio-grid-reverse {
        direction: ltr;
    }

    .approccio-section-content {
        padding-right: 0;
        order: 1;
    }

    .approccio-grid-reverse .approccio-section-content {
        padding-left: 0;
    }

    .approccio-section-image {
        order: 2;
    }

    .approccio-section {
        padding: 80px 0;
    }

    .approccio-numeri-grid {
        flex-direction: column;
        gap: 30px;
    }

    .approccio-numero-arrow {
        transform: rotate(90deg);
    }

    .approccio-numero-item {
        min-width: auto;
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .approccio-hero-content {
        padding: 100px 20px 60px;
    }

    .approccio-piano-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .approccio-piano-item {
        padding: 30px 20px;
    }

    .approccio-finale {
        padding: 80px 0;
    }

    .approccio-finale-statements {
        gap: 15px;
    }

    .approccio-statement {
        font-size: 1.1rem;
        padding: 15px 0;
    }

    .approccio-statement-highlight {
        font-size: 1.3rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .approccio-section {
        padding: 60px 0;
    }

    .approccio-section-text {
        font-size: 1rem;
    }

    .approccio-highlight {
        padding: 20px;
        font-size: 1rem;
    }

    .approccio-numero-item {
        padding: 30px 20px;
    }

    .approccio-numero-value {
        font-size: 2rem;
    }

    .approccio-risparmio-value {
        font-size: 3rem;
    }
}

/* ===== ANIMAZIONI DI SUPPORTO ===== */
.approccio-title-line .char {
    display: inline-block;
    transform-origin: center bottom;
    will-change: transform, opacity;
}

/* GPU Acceleration */
.approccio-hero-image,
.approccio-img,
.approccio-numero-item,
.approccio-piano-item {
    transform: translateZ(0);
    backface-visibility: hidden;
}
