/*
Theme Name: Ferpan Theme
Theme URI: https://tuodominio.it
Author: Ferdinando Panico
Description: Tema personalizzato WordPress per Ferpan, homepage premium su misura.
Version: 1.0
Text Domain: ferpan-theme
*/

/* ===========================================
   GLOBAL
=========================================== */

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --academy-gold: #b18b1d;
}

/* ===========================================
   ACCORDION GOLD STYLE
=========================================== */

.accordion-modern .accordion-button {
    font-size: 1.2rem;
    background: #faf8f2;
    padding: 18px;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: 600;
    color: var(--academy-gold);
}

.accordion-modern .accordion-button:not(.collapsed) {
    background: rgba(177, 139, 29, 0.15);
    color: var(--academy-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-left: 5px solid var(--academy-gold);
}

.accordion-modern .accordion-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(177, 139, 29, 0.25);
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.accordion-modern .accordion-body {
    animation: fadeIn 0.35s ease;
    padding: 20px 25px;
    color: #333;
}

.accordion-modern .acc-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 4px double var(--academy-gold);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.accordion-modern .acc-img:hover {
    transform: scale(1.03);
}

.accordion-modern ul li {
    margin-bottom: 6px;
    font-size: 1rem;
}
.accordion-modern ul li::marker {
    color: var(--academy-gold);
    font-weight: bold;
}

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

@media (min-width: 992px) {
    .accordion-modern .accordion-body {
        display: flex;
        align-items: flex-start;
        gap: 25px;
    }
    .accordion-modern .acc-img {
        width: 30%;
    }
    .accordion-modern .accordion-body ul,
    .accordion-modern .accordion-body p {
        width: 70%;
    }
}

/* ===========================================
   VIDEO GALLERY – GOLD STYLE
=========================================== */

/* Griglia card video */
.video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    justify-content: flex-start;
    margin: 30px auto;
}

/* Card video premium */
.video-card {
    background: #fff;
    border-radius: 18px;
    border: 3px solid rgba(177,139,29,0.35);
    padding: 18px;
    text-align: center;
    transition: .3s ease;
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);

    min-width: 300px;
    max-width: 360px;
    flex: 1 1 300px;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--academy-gold);
    box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

.video-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--academy-gold);
    margin-top: 5px;
}

/* Thumbnail */
.video-thumb {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 14px;
    border: 3px solid var(--academy-gold);
    box-shadow: 0 12px 25px rgba(0,0,0,0.16);
    margin-bottom: 15px;
}

/* Poster */
.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 14px;
    transition: opacity .3s ease;
}

/* Video per preview */
.video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Mobile */
@media (max-width: 767px) {
    .video-thumb {
        height: 200px;
    }
    .video-card {
        max-width: 100%;
    }
}

/* ===========================================
   MODAL VIDEO GOLD STYLE
=========================================== */

.video-modal-box {
    border-radius: 18px !important;
    overflow: hidden;
    border: 3px solid var(--academy-gold);
}

.video-wrapper {
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

.modal-lg {
    max-width: 900px;
}
