:root {
    --am-abouthero-white: #ffffff;
    --am-abouthero-overlay: rgba(0, 0, 0, 0.50);
    --am-abouthero-text: rgba(255, 255, 255, 0.92);
}
.am-abouthero-section {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: "Special Gothic", sans-serif;
    box-sizing: border-box;
    overflow: hidden; /* Previne scroll-ul orizontal pe parcursul animațiilor */
}

.am-abouthero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background:rgba(0, 0, 0, 0.26);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.am-abouthero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.am-abouthero-subtitle {
    display: block;
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 600;
    color: #ffffffcb;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    
    /* Starea inițială pentru animație */
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.am-abouthero-title {
    font-size: clamp(72px, 6vw, 110px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--am-abouthero-white);
    margin-top: 0;
    margin-bottom: 35px;
    font-family: ibarra Real Nova, serif;
    /* Starea inițială pentru animație */
    opacity: 0;
    transform: translateY(40px);
    /* Delay 0.2s, Durată 0.9s */
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.2s, 
                transform 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}
.am-abouthero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Asigură că imaginea este în spatele conținutului */
}

.am-abouthero-description {
    font-size: clamp(28px, 2vw, 40px);
    font-weight: 400;
    line-height: 1.5;
    color: var(--am-abouthero-text);
    max-width: 900px;
    margin: auto;
    
    /* Starea inițială pentru animație */
    opacity: 0;
    transform: translateY(30px);
    /* Delay 0.4s, Durată 0.8s */
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s, 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
}

/* 
 * Clasele active declanșate din JavaScript 
 * atunci când secțiunea intră în vizor
 */
.am-abouthero-section.am-abouthero-visible .am-abouthero-subtitle,
.am-abouthero-section.am-abouthero-visible .am-abouthero-title,
.am-abouthero-section.am-abouthero-visible .am-abouthero-description {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE DESIGN */

/* Sub 992px */
@media (max-width: 991px) {
    .am-abouthero-section {
        height: 55vh;
    }
    
    .am-abouthero-title {
        font-size: 58px;
    }
    
    .am-abouthero-description {
        font-size: 24px;
    }
}

/* Sub 768px */
@media (max-width: 767px) {
    .am-abouthero-overlay {
        padding: 0 25px;
    }
    
    .am-abouthero-subtitle {
        font-size: 22px;
    }
    
    .am-abouthero-title {
        font-size: 46px;
    }
    
    .am-abouthero-description {
        font-size: 20px;
        line-height: 1.7;
    }
}

:root {
    --atmo-brown: #4f3525;
    --atmo-light: #faf7f4;
    --atmo-text: #3d3128;
    --atmo-gray: #666666;
    --atmo-white: #ffffff;
}

.atmo-section {
    background-color: var(--atmo-light);
    font-family: "Special Gothic", sans-serif;
    width: 100%;
    overflow-x: hidden; /* Previne scroll-ul orizontal pe durata animațiilor */
}

.atmo-container {
    max-width: 1400px;
    margin: auto;
    padding: 140px 7%;
    box-sizing: border-box;
}

/* --- HEADER INTRODUCERE --- */
.atmo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.atmo-title {
    font-size: clamp(46px, 4vw, 72px);
    font-weight: 900;
    color: var(--atmo-text);
    text-align: center;
    margin-top: 0;
    margin-bottom: 35px;
    font-family: ibarra real nova, sans-serif;
    
    /* Stare inițială animație */
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.atmo-subtitle {
    font-size: 23px;
    line-height: 1.8;
    color: var(--atmo-gray);
    max-width: 900px;
    margin: auto;
    text-align: center;
    margin-bottom: 90px;

    /* Stare inițială animație */
    opacity: 0;
    transform: translateY(30px); /* O direcție ușor opusă pentru eleganță, conform logicii de UI fluid */
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

/* --- GRID PRINCIPAL --- */
.atmo-grid {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 80px;
    align-items: center;
}

/* --- IMAGINE STÂNGA --- */
.atmo-image-wrapper {
    position: relative;
    width: 100%;
    
    /* Stare inițială animație */
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.35s, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.35s;
}

/* Container-ul aplică umbra și taie marginile (border-radius) fără a bloca extinderea badge-ului */
.atmo-image-container {
    width: 100%;
    height: 680px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.5s ease;
}

.atmo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover effect pentru imagine și umbră */
.atmo-image-wrapper:hover .atmo-image-container {
    box-shadow: 0 40px 75px rgba(0, 0, 0, 0.18);
}

.atmo-image-wrapper:hover .atmo-image {
    transform: scale(1.03);
}

/* Placeholder pentru Mascotă (Badge) */
.atmo-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 90px;
    height: 90px;
    background-color: var(--atmo-white);
    border-radius: 50%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
    /* Adăugat pointer-events:none temporar cât este placeholder */
    pointer-events: none; 
}

/* --- TEXT DREAPTA --- */
.atmo-content {
    /* Stare inițială animație */
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s;
}

.atmo-heading {
    font-size: 48px;
    font-weight: 900;
    color: var(--atmo-text);
    margin-top: 0;
    margin-bottom: 35px;
    line-height: 1.1;
    font-family: ibarra real nova, sans-serif;
}

.atmo-text {
    font-size: 22px;
    line-height: 1.9;
    color: var(--atmo-gray);
    margin-top: 0;
    margin-bottom: 30px;
}

.atmo-text:last-child {
    margin-bottom: 0;
}

/* --- CLASA DE ACTIVARE ANIMAȚII (Trigger prin JS) --- */
.atmo-section.atmo-animated .atmo-title,
.atmo-section.atmo-animated .atmo-subtitle,
.atmo-section.atmo-animated .atmo-image-wrapper,
.atmo-section.atmo-animated .atmo-content {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- RESPONSIVE --- */

/* Sub 1100px */
@media (max-width: 1100px) {
    .atmo-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .atmo-image-wrapper {
        max-width: 650px;
        margin: 0 auto;
        order: -1; /* Forțează imaginea să apară deasupra textului */
    }

    .atmo-badge {
        bottom: 20px;
        right: 20px;
    }
}

/* Sub 768px */
@media (max-width: 767px) {
    .atmo-container {
        padding: 90px 8%;
    }

    .atmo-title {
        font-size: 38px;
        margin-bottom: 25px;
    }

    .atmo-subtitle {
        font-size: 19px; /* Ajustare subtilă pentru echilibru vizual */
        margin-bottom: 60px;
    }

    .atmo-heading {
        font-size: 34px;
        margin-bottom: 25px;
    }

    .atmo-text {
        font-size: 19px;
    }

    .atmo-image-container {
        height: 480px;
    }

    .atmo-badge {
        width: 75px;
        height: 75px;
        bottom: 15px;
        right: 15px;
    }
}

/* =================================================================
   PALETĂ
================================================================== */
:root{
    --abf-bg:#4f3522;
    --abf-card:#faf7f4;
    --abf-circle:#e8e4df;
    --abf-white:#ffffff;
    --abf-text:#4f3522;
    --abf-gray:#5d5d5d;
}

/* =================================================================
   SECȚIUNE
================================================================== */
.abf-section{
    width:100%;
    background:var(--abf-bg);
    font-family:"Special Gothic", sans-serif;
}
.abf-section *{ box-sizing:border-box; }

.abf-container{
    max-width:1400px;
    margin:auto;
    padding:140px 7%;
}

/* =================================================================
   HEADER
================================================================== */
.abf-header{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.abf-subtitle{
    display:block;
    font-size:18px;
    font-weight:800;
    letter-spacing:4px;
    text-transform:uppercase;
    color:#f5f0ea;
    margin-bottom:25px;
    text-align:center;

    opacity:0;
    transform:translateY(-40px);
    transition:opacity .7s ease, transform .7s ease;
}
.abf-section.abf-in-view .abf-subtitle{
    opacity:.9;
    transform:translateY(0);
}

.abf-main-title{
    font-size:clamp(42px, 4vw, 70px);
    font-weight:700;
    line-height:1.2;
    color:var(--abf-white);
    text-align:center;
    margin-bottom:90px;

    opacity:0;
    transform:translateY(-50px);
    transition:opacity .7s ease .2s, transform .7s ease .2s;
}
.abf-section.abf-in-view .abf-main-title{
    opacity:1;
    transform:translateY(0);
}

/* =================================================================
   GRID
================================================================== */
.abf-grid{
    display:grid;
    grid-template-columns:repeat(3, 1.3fr);
    gap:40px;
}

/* =================================================================
   CARD
================================================================== */
.abf-card{
    background:var(--abf-card);
    border-radius:36px;
    padding:35px 28px;
    min-height:320px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    text-align:center;
    transition:.45s ease;
    box-shadow:0 20px 50px rgba(0,0,0,.12);

    opacity:0;
    transform:translateY(70px);
}

.abf-card:hover{
    transform:translateY(-14px);
    box-shadow:0 35px 80px rgba(0,0,0,.22);
}

.abf-section.abf-in-view .abf-card{
    opacity:1;
    transform:translateY(0);
    transition:opacity .8s ease, transform .8s ease;
}
.abf-section.abf-in-view .abf-card:nth-child(1){ transition-delay:.15s; }
.abf-section.abf-in-view .abf-card:nth-child(2){ transition-delay:.35s; }
.abf-section.abf-in-view .abf-card:nth-child(3){ transition-delay:.55s; }

.abf-section.abf-in-view .abf-card:hover{
    transition:transform .45s ease, box-shadow .45s ease;
}

/* ---- Icon --------------------------------------------------------------*/
.abf-icon{
    width:52px;
    height:52px;
    border-radius:50%;
    background:var(--abf-circle);
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:35px;
    transition:background .35s ease;
}
.abf-icon i{
    font-size:28px;
    color:var(--abf-text);
    transition:color .35s ease;
}
.abf-card:hover .abf-icon{
    background:var(--abf-bg);
}
.abf-card:hover .abf-icon i{
    color:var(--abf-white);
}

/* ---- Titlu card ------------------------------------------------------*/
.abf-card-title{
    font-size:32px;
    font-weight:700;
    color:var(--abf-text);
    margin-bottom:28px;
    line-height:1.3;
}

/* ---- Descriere --------------------------------------------------------*/
.abf-card-text{
    font-size:22px;
    line-height:1.8;
    color:var(--abf-gray);
}

/* =================================================================
   RESPONSIVE
================================================================== */
@media (max-width:1100px){
    .abf-grid{
        grid-template-columns:repeat(2, 1fr);
    }
    .abf-card:nth-child(3){
        grid-column:1 / -1;
        justify-self:center;
        width:100%;
        max-width:calc(50% - 30px);
    }
}

@media (max-width:768px){
    .abf-container{
        padding:100px 7%;
    }
    .abf-grid{
        grid-template-columns:1fr;
        gap:35px;
    }
    .abf-card{
        width:100%;
        max-width:100%;
        padding:45px 35px;
    }
    /* Anulează regula de la ≤1100px (ultimul card centrat pe jumătate de rând).
       Pe o singură coloană, cardul 3 trebuie să aibă exact aceeași lățime,
       încadrare și padding ca celelalte două. */
    .abf-card:nth-child(3){
        grid-column:auto;
        justify-self:stretch;
        width:100%;
        max-width:100%;
    }
    .abf-main-title{
        font-size:40px;
    }
    .abf-icon{
        width:70px;
        height:70px;
    }
}

/* =================================================================
   ACCESIBILITATE
================================================================== */
@media (prefers-reduced-motion: reduce){
    .abf-subtitle,
    .abf-main-title,
    .abf-card{
        transition:none !important;
        opacity:1 !important;
        transform:none !important;
    }
}