/* ===== HERO ===== */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
    /* filter: blur(6px);*/
}

.hero-bg.active {
    opacity: 1;
}
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-logo {
    position: absolute;
    top: 20px;      /* távolság a felső szélétől */
    left: 20px;     /* távolság a bal szélétől */
    z-index: 5;     /* minden slide fölé kerüljön */
}

.hero-logo img {
    width: 120px;   /* a logó mérete */
    max-width: 25%; /* mobilon is alkalmazkodjon */
    height: auto;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-content {
    opacity: 0;
    transform: translateX(-40px);
    animation: heroTextIn 1s ease forwards;
    color: #ffffff;
    z-index: 2;
    margin-bottom: 35px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color:#ffffff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-content .btn {
    padding: 0.8rem 2rem;
    background-color: #ff4d4d;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.hero-content .btn:hover {
    background-color: #e63939;
}

@keyframes heroPizzaFloat {
    0%   { transform: translateX(0) rotate(0deg) scale(1); }
    25%  { transform: translateX(5px) rotate(10deg) scale(1.05); }
    50%  { transform: translateX(0) rotate(0deg) scale(1); }
    75%  { transform: translateX(-5px) rotate(-10deg) scale(0.95); }
    100% { transform: translateX(0) rotate(0deg) scale(1); }
}
.hero-pizza img {
    opacity: 0;
    transform: translateX(40px) scale(0.8);
    animation: heroPizzaIn 1.2s ease forwards, heroPizzaFloat 15s ease-in-out infinite;
    animation-delay: 0.4s;
    width: 850px;
    max-width: 100%;
    height: auto;
}

.hero-image, .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-image {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-video {
    object-fit: cover;
}

/* Hero animációk */
@keyframes heroTextIn {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes heroPizzaIn {
    to { opacity: 1; transform: translateX(0) scale(1); }
}
.hero-content.animate {
    animation: heroFadeUp 1s ease forwards;
}
@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}


/* Tablet és kisebb */
@media only screen and (min-width: 900px) and (max-width: 1200px) {

    /* Hero */
    .hero-container { flex-direction: column; justify-content: center; text-align: center; height: 100vh; }
    .hero-pizza { order: -1; margin-bottom: 20px; }
    .hero-content { width: 100%; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-pizza img { width: 800px; max-width: 100%; height: auto; }

    }
    /* Mobil és mini mobil */
@media screen and (max-width: 480px) {
    .hero-container { height: 100vh; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p { font-size: 0.9rem; }
    .hero-content .btn { padding: 0.6rem 1.5rem; }
}

@media screen and (max-width: 400px) {
    .hero-container { height: 100vh; }
    .hero-content h1 { font-size: 1.5rem; }
    .hero-content p { font-size: 0.85rem; }
    .hero-content .btn { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
    .hero-pizza img { width: 380px; }
        .info-left {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 3rem 1rem 1rem 1rem; /* fent nagyobb padding, lent marad 1rem */
        height:300px;
    }
}
/* hero slider*/
.hero-slides {
    position: relative;
    width: 60%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 200px;
    left: 0;
    width: 100%;
    height: 100%;
    
   /* display: flex;*/
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem; /* ez beljebb hozza a tartalmat */
    
    opacity: 0;
    transition: opacity 1s ease-in-out;

    pointer-events: none;
    box-sizing: border-box; /* hogy a padding ne lógjon ki */
}

.hero-slide.active {
    opacity: 1;
    z-index: 2; /* mindig az aktív slide legyen a tetején */
    pointer-events: auto;
}
/* Mobil nézet */
@media (max-width: 768px) {
    .hero-slide {
        position: absolute; /* biztosítja, hogy egymásra kerüljenek */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        z-index: 1;
        transition: opacity 1s ease-in-out;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-slide.active {
        opacity: 1;
        z-index: 2;
        pointer-events: auto;
    }
}
@media (max-width: 400px) {
    .hero-slide {
        width: 95%;        /* szinte teljes szélesség, de maradjon padding */
        max-width: none;
        margin: 0 auto;
        padding: 0 1rem;   /* kis belső margó a szélekhez */
    }
        .hero-slides {
        position: relative;
        width: 100%;
        height: 100%;
        }
    .hero-pizza {
        width: 80%;        /* kisebb kép, hogy ne legyen túl nagy */
        max-width: 380px;  /* iPhone Mini-hez optimalizálva */
        margin: 0 auto 1rem auto;
    }

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

    .hero-content p {
        font-size: 0.85rem;
    }

    .hero-content .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

}