:root {
    --ferrari-dark: #111111;
    --bg-soft: #f5f5f7;
    --bg-soft-alt: #fafafa;
    --text-main: #181818;
    --text-muted: #6c6c6c;
    --radius-lg: 24px;
    --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.1);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-main);
    padding-top: 80px;
}
body.brand-ferrari {
  --brand-primary: #d6001c;
}
body.brand-maserati {
  --brand-primary: #223d72;
}
/* ---------------- NAVBAR ---------------- */
.navbar-premium {
    backdrop-filter: blur(18px);
    background: #0a0a0a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.navbar-premium .navbar-brand img {
    height: 56px;
    transition: transform 0.25s ease;
}
.navbar-premium .navbar-brand img:hover {
    transform: translateY(-2px);
}
.navbar-premium .nav-link {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
    margin-left: 1.3rem;
    position: relative;
    padding-bottom: 0.2rem;
}
.navbar-premium .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width 0.25s ease;
}
.navbar-premium .nav-link:hover,
.navbar-premium .nav-link:focus,
.navbar-premium .nav-link.active {
    color: white;
}
.navbar-premium .nav-link:hover::after,
.navbar-premium .nav-link.active::after {
    width: 100%;
}
.navbar-premium .navbar-toggler {
    color: #ffffff;
}
.navbar-premium .navbar-toggler i {
    color: #ffffff;
}
.navbar-premium .navbar-toggler {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
}
.navbar-premium .navbar-toggler:hover,
.navbar-premium .navbar-toggler:focus {
    background: rgba(255,255,255,0.08);
}
/* ---------------- HERO ---------------- */
.hero-wrapper {
    background-image: url('images/2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 80px 0;
}
.hero-wrapper-maserati {
    background-image: url('images/20.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 80px 0;
}
@media (max-width: 992px) {
    .hero-wrapper,
    .hero-wrapper-maserati {
        background-attachment: scroll;
    }
}
.hero-card {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    padding: 3rem clamp(2rem, 4vw, 3.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
}
@media (max-width: 992px) {
    .hero-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 2.5rem 1.8rem 2.2rem;
    }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-primary);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}
.hero-title {
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 1.4rem;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 32rem;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.8rem;
    font-size: 0.85rem;
    color: #777;
}
.hero-meta span strong {
    color: var(--ferrari-dark);
}
.hero-actions {
    margin-top: 2.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.btn-primary {
    background: var(--brand-primary);
    color: white;
    border-radius: 999px;
    padding: 0.75rem 1.9rem;
    font-size: 0.95rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary:hover {
    background: var(--brand-primary);
    color: white;
}
.btn-outline {
    border-radius: 999px;
    padding: 0.75rem 1.7rem;
    font-size: 0.95rem;
    border-color: #ddd;
    color: var(--ferrari-dark);
    background: #fff;
}
.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: #f3f3f3;
}
.hero-image-wrap {
    position: relative;
}
.hero-image-frame {
    border-radius: 26px;
    background: radial-gradient(circle at 10% 0, #ffffff 0, #f0f0f4 40%, #dddddd 100%);
    padding: 1.1rem 1.1rem 0.8rem;
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.hero-image {
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    max-height: 420px;
}
/* ---------------- PILLARS ---------------- */
.pillars-section {
    padding: 3rem 1rem 3.5rem;
    background: var(--bg-soft-alt);
}
.section-eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    color: var(--brand-primary);
    font-weight: 600;
}
.section-title {
    font-size: 1.9rem;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}
.section-subtitle {
    color: var(--text-muted);
    max-width: 32rem;
    margin-inline: auto;
}
.pillars-grid {
    margin-top: 2.5rem;
}
.pillar-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.3rem 2rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.pillar-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--brand-primary);
    font-size: 1.8rem;
    margin-bottom: 1.4rem;
}
.pillar-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
}
.pillar-card p {
    font-size: 0.97rem;
    color: var(--text-muted);
}
/* ---------------- ABOUT ---------------- */
.about-section {
    padding: 3.5rem 1rem;
}
.about-text p {
    color: var(--text-muted);
    font-size: 0.98rem;
}
.about-highlight {
    border-left: 3px solid var(--brand-primary);
    padding-left: 1rem;
    margin-top: 1.5rem;
    color: #444;
    font-size: 0.95rem;
}
.about-images {
    position: relative;
    min-height: 280px;
}
.about-img-main,
.about-img-overlay {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}
.about-img-main img,
.about-img-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-img-main {
    position: absolute;
    inset: 0 12% 14% 0;
}
.about-img-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 52%;
    border: 4px solid #ffffff;
}
@media (max-width: 768px) {
    .about-images {
        margin-top: 1.8rem;
        min-height: 220px;
    }
}
/* ---------------- EVENTS ---------------- */
.events-section {
    padding: 3.5rem 1rem;
    background: #ffffff;
}
.event-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #000;
    height: 260px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}
.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%);
    z-index: 1;
}
.event-card:hover img {
    transform: scale(1.06);
}
.event-info {
    position: absolute;
    left: 1.4rem;
    bottom: 1.2rem;
    right: 1.4rem;
    z-index: 2;
    color: #ffffff;
}
.event-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}
.event-info span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #f3f3f3;
}
.event-tag {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-primary);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
/* ---------------- BOOKS ---------------- */
.pdf-cover {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease;
    margin-bottom: 2rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.pdf-cover:hover {
    transform: scale(1.06);
    box-shadow: 0 35px 65px rgba(0,0,0,0.55);
}
.pdf-carousel-section .carousel-control-prev,
.pdf-carousel-section .carousel-control-next {
    width: 56px;
}
.pdf-carousel-section .carousel-control-prev-icon,
.pdf-carousel-section .carousel-control-next-icon {
    background-color: var(--brand-primary);
    border-radius: 50%;
    padding: 18px;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    background-size: 60% 60%;
}
.pdf-carousel-section .carousel-control-prev {
    left: -70px;
}
.pdf-carousel-section .carousel-control-next {
    right: -70px;
}
.pdf-carousel-section .carousel-control-prev-icon:hover,
.pdf-carousel-section .carousel-control-next-icon:hover {
    background-color: var(--brand-primary);
}
@media (min-width: 992px) {
    .pdf-carousel-section .carousel-control-prev {
        left: -58px;
    }
    .pdf-carousel-section .carousel-control-next {
        right: -58px;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .pdf-carousel-section .carousel-control-prev {
        left: -30px;
    }
    .pdf-carousel-section .carousel-control-next {
        right: -30px;
    }
}
@media (max-width: 767px) {
    .pdf-carousel-section .carousel-control-prev {
        left: 12px;
    }
    .pdf-carousel-section .carousel-control-next {
        right: 12px;
    }
}
@media (max-width: 767px) {
    .pdf-carousel-section .carousel-control-prev-icon,
    .pdf-carousel-section .carousel-control-next-icon {
        padding: 16px;
        background-size: 55% 55%;
    }
}
/* ---------------- GALLERY ---------------- */
.gallery-section {
    padding: 3.5rem 1rem;
    background: #ffffff;
}
.gallery-item {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform .3s ease;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform .3s ease;
}
.gallery-grid img:hover {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .hide-mobile {
        display: none;
    }
}
/* ---------------- MEMBERSHIP ---------------- */
.membership-section {
    padding: 3.5rem 1rem 4rem;
}
.membership-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 2.7rem 2.2rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
}
@media (max-width: 992px) {
    .membership-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 2.3rem 1.8rem;
    }
}
.membership-card ul {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
    columns: 2;
    column-gap: 1.4rem;
}
@media (max-width: 576px) {
    .membership-card ul {
        columns: 1;
    }
}
.membership-card li {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.membership-card li i {
    color: var(--brand-primary);
    margin-right: 0.35rem;
}
.membership-side {
    border-radius: 22px;
    border: 1px solid #f0f0f0;
    padding: 1.8rem 1.5rem;
    background: linear-gradient(145deg, #f5f5f5);
}
.membership-side h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}
.membership-side p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
/* ---------------- FOOTER ---------------- */
footer {
    background: #f3f3f3;
    border-top: 1px solid #e4e4e4;
    padding: 2.8rem 0 2rem;
    font-size: 0.9rem;
}
footer h5 {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}
footer p,
footer a {
    color: #777;
    text-decoration: none;
}
footer a:hover {
    color: var(--brand-primary);
}
.footer-icons a {
    margin-right: 0.8rem;
    font-size: 1.3rem;
    color: #777;
}
.footer-icons a:hover {
    color: var(--brand-primary);
}
@media (max-width: 576px) {
  footer .col-md-4 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (max-width: 576px) {
    .membership-card {
        grid-template-columns: 1fr;
    }
    .membership-side {
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 0;
        margin-top: 0.8rem;
    }
    .membership-side::before {
        content: "";
        display: block;
        height: 1px;
        background: #e6e6e6;
        margin-bottom: 1.4rem;
    }
    .membership-side .mt-3 {
        margin-top: 1.6rem !important;
    }
}
/* ---------------- SIMPLE SCROLL REVEAL ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
.reveal.show {
    opacity: 1;
    transform: translateY(0);
}
section[id] {
    scroll-margin-top: 90px;
}