/* ============================================================
   AMANUS PONTINE — Joomla Template Stylesheet
   ============================================================ */

/* --- VARIABLES --- */
:root {
    --navy: #0a1628;
    --navy-light: #132240;
    --gold: #c9a96e;
    --gold-light: #ddc89a;
    --white: #ffffff;
    --off-white: #f5f3ef;
    --gray: #8a8f98;
    --text: #333;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-sub: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background .4s, padding .4s, box-shadow .4s;
}
.main-nav.scrolled {
    background: rgba(10,22,40,.95);
    padding: 12px 0;
    box-shadow: 0 2px 30px rgba(0,0,0,.3);
    backdrop-filter: blur(10px);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { display: flex; flex-direction: column; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 6px;
    text-transform: uppercase;
}
.logo-tagline {
    font-family: var(--font-sub);
    font-size: .8rem;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width .3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--gold); }

.hb-user-menu-slot {
    display: flex;
    align-items: center;
    margin-left: 22px;
    position: relative;
    z-index: 1002;
}
.hb-user-menu-slot .moduletable,
.hb-user-menu-slot .mod-custom,
.hb-user-menu-slot > div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hb-user-menu-slot a,
.hb-user-menu-slot button,
.hb-user-menu-slot .hb-user-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(201,169,110,.42);
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.hb-user-menu-slot a:hover,
.hb-user-menu-slot button:hover {
    color: var(--navy);
    border-color: var(--gold);
    background: var(--white);
}
.hb-user-menu-slot ul {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hb-user-menu-slot li {
    position: relative;
}
.hb-user-menu-slot li > ul,
.hb-user-menu-slot .mod-menu__sub {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    display: block;
    min-width: 260px;
    padding: 14px 0;
    border: 1px solid rgba(10,22,40,.08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(7,20,38,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.hb-user-menu-slot li:hover > ul,
.hb-user-menu-slot li:focus-within > ul,
.hb-user-menu-slot li:hover > .mod-menu__sub,
.hb-user-menu-slot li:focus-within > .mod-menu__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hb-user-menu-slot li > ul a,
.hb-user-menu-slot .mod-menu__sub a {
    width: 100%;
    justify-content: flex-start;
    min-height: auto;
    padding: 10px 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--navy);
    font-size: .9rem;
}
.hb-user-menu-slot li > ul a:hover,
.hb-user-menu-slot .mod-menu__sub a:hover {
    background: #f7f2e8;
    color: var(--navy);
}
.hb-user-menu-slot::after {
    content: "";
    width: 34px;
    height: 34px;
    margin-left: 7px;
    border: 1px solid rgba(201,169,110,.55);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, #9aa3af 0 5px, transparent 6px),
        radial-gradient(circle at 50% 72%, #9aa3af 0 10px, transparent 11px),
        #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 28px; height: 2px;
    background: var(--white);
    transition: transform .3s, opacity .3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10,22,40,.4) 0%,
        rgba(10,22,40,.6) 50%,
        rgba(10,22,40,.85) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    animation: heroFadeIn 1.5s ease forwards;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-label {
    font-family: var(--font-body);
    font-size: .75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-family: var(--font-sub);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--gold-light);
    font-style: italic;
    margin-bottom: 16px;
}
.hero-desc {
    font-size: .95rem;
    color: rgba(255,255,255,.75);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--gold);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   FEATURED STORIES
   ============================================================ */
.featured-stories {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.featured-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
}
.featured-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .8s ease;
}
.featured-card:hover .featured-img { transform: scale(1.05); }
.featured-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,22,40,.8) 0%, rgba(10,22,40,.2) 60%);
}
.featured-text {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
    padding: 40px;
}
.featured-label {
    font-size: .7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}
.featured-text h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 12px;
}
.featured-text p {
    font-size: .9rem;
    color: rgba(255,255,255,.7);
    line-height: 1.6;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
    background: var(--navy);
    padding: 50px 24px;
    text-align: center;
}
.cta-link {
    font-family: var(--font-sub);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 3px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 6px;
    transition: color .3s, border-color .3s;
}
.cta-link:hover { color: var(--gold-light); border-color: var(--gold-light); }
.cta-link i { margin-left: 10px; transition: transform .3s; }
.cta-link:hover i { transform: translateX(6px); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
    padding: 100px 0;
    background: var(--off-white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.section-label {
    font-family: var(--font-body);
    font-size: .7rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 8px;
}
.section-subtitle {
    font-family: var(--font-sub);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 400;
    margin-bottom: 24px;
}
.about-text p {
    margin-bottom: 16px;
    color: #555;
    font-size: .95rem;
}
.about-ceo {
    font-family: var(--font-sub);
    font-size: 1.1rem;
    color: var(--navy) !important;
    font-style: italic;
    margin-top: 24px !important;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.stat-card {
    background: var(--navy);
    padding: 36px 24px;
    text-align: center;
    border-radius: 2px;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--gold);
    font-weight: 700;
}
.stat-plus {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
}
.stat-label {
    display: block;
    margin-top: 8px;
    font-size: .75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
}

/* ============================================================
   YACHTS
   ============================================================ */
.yachts-section {
    padding: 100px 0;
    background: var(--white);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-desc {
    font-size: .95rem;
    color: var(--gray);
    max-width: 550px;
    margin: 16px auto 0;
}
.yachts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.yacht-card {
    background: var(--white);
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform .4s, box-shadow .4s;
}
.yacht-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(10,22,40,.12);
}
.yacht-img { overflow: hidden; height: 240px; }
.yacht-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s;
}
.yacht-card:hover .yacht-img img { transform: scale(1.08); }
.yacht-info { padding: 28px; }
.yacht-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 10px;
}
.yacht-info p {
    font-size: .88rem;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.6;
}
.read-more {
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}
.read-more i { margin-left: 6px; transition: transform .3s; }
.read-more:hover i { transform: translateX(5px); }

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits-section {
    padding: 100px 0;
    background: var(--navy);
}
.benefits-section .section-label { color: var(--gold); }
.benefits-section .section-title { color: var(--white); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.benefit-card {
    text-align: center;
    padding: 36px 20px;
    border: 1px solid rgba(255,255,255,.08);
    transition: background .3s, transform .3s;
}
.benefit-card:hover {
    background: rgba(255,255,255,.05);
    transform: translateY(-4px);
}
.benefit-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 18px;
}
.benefit-card h4 {
    font-family: var(--font-sub);
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 10px;
}
.benefit-card p {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    line-height: 1.5;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section {
    padding: 100px 0;
    background: var(--white);
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}
.why-image {
    overflow: hidden;
    border-radius: 2px;
}
.why-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform .6s;
}
.why-image:hover img { transform: scale(1.03); }
.why-text p {
    color: #555;
    font-size: .95rem;
    margin-bottom: 16px;
    line-height: 1.8;
}
.why-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    border-top: 1px solid #eee;
    padding-top: 50px;
}
.why-stat {
    text-align: center;
}
.why-stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}
.why-stat-plus {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
}
.why-stat-label {
    display: block;
    margin-top: 8px;
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    padding: 100px 0;
    background: var(--off-white);
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}
.faq-intro p {
    color: #555;
    font-size: .95rem;
    line-height: 1.8;
    margin-top: 16px;
}
.faq-item {
    border-bottom: 1px solid #ddd;
}
.faq-item:first-child {
    border-top: 1px solid #ddd;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--navy);
    transition: color .3s;
}
.faq-question:hover { color: var(--gold); }
.faq-question i {
    color: var(--gold);
    font-size: .85rem;
    transition: transform .3s;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-question.active i {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease;
}
.faq-answer.open {
    max-height: 300px;
}
.faq-answer p {
    padding: 0 0 20px;
    color: #555;
    font-size: .9rem;
    line-height: 1.8;
}

/* ============================================================
   HISTORY / TIMELINE
   ============================================================ */
.history-section {
    padding: 100px 0;
    background: var(--white);
}
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 40px 0;
}
.timeline-line {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--gold);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 50px;
}
.timeline-item.left {
    left: 0;
    text-align: right;
}
.timeline-item.right {
    left: 50%;
    text-align: left;
}
.timeline-dot {
    position: absolute;
    top: 4px;
    width: 16px; height: 16px;
    background: var(--navy);
    border: 3px solid var(--gold);
    border-radius: 50%;
    z-index: 2;
}
.timeline-item.left .timeline-dot { right: -8px; }
.timeline-item.right .timeline-dot { left: -8px; }
.timeline-date {
    font-family: var(--font-body);
    font-size: .75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}
.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 8px;
}
.timeline-content p {
    font-size: .9rem;
    color: #555;
    line-height: 1.7;
}

/* History Story blocks */
.history-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.history-story-grid.reverse {
    direction: rtl;
}
.history-story-grid.reverse > * {
    direction: ltr;
}
.history-story-text p {
    color: #555;
    font-size: .95rem;
    margin-bottom: 16px;
    line-height: 1.8;
}
.history-story-img {
    overflow: hidden;
    border-radius: 2px;
}
.history-story-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform .6s;
}
.history-story-img:hover img { transform: scale(1.03); }
.history-ceo-badge {
    margin-top: 24px;
    padding: 16px 24px;
    background: var(--navy);
    display: inline-block;
}
.history-ceo-name {
    font-family: var(--font-sub);
    font-size: 1rem;
    color: var(--gold);
    font-style: italic;
}

/* ============================================================
   OFFICES
   ============================================================ */
.offices-section {
    padding: 100px 0;
    background: var(--off-white);
}
.offices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.office-card {
    background: var(--white);
    padding: 40px;
    border-left: 3px solid var(--gold);
}
.office-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 20px;
}
.office-card li {
    margin-bottom: 12px;
    font-size: .9rem;
    color: #555;
}
.office-card li i {
    color: var(--gold);
    width: 20px;
    margin-right: 10px;
}
.offices-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.offices-text p {
    font-size: .95rem;
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-section {
    padding: 100px 0;
    background: var(--white);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.team-card {
    text-align: center;
    transition: transform .3s;
}
.team-card:hover { transform: translateY(-6px); }
.team-img {
    width: 200px; height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
}
.team-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.team-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 4px;
}
.team-role {
    font-family: var(--font-sub);
    font-size: .95rem;
    color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background: var(--navy);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 4px;
}
.footer-brand p {
    font-family: var(--font-sub);
    color: var(--gold);
    font-size: .9rem;
    letter-spacing: 2px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
    width: 42px; height: 42px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: .9rem;
    transition: background .3s, border-color .3s;
}
.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}
.footer-news h4 {
    font-family: var(--font-display);
    color: var(--white);
    margin-bottom: 10px;
}
.footer-news p {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
}
.footer-bottom {
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: .8rem;
    color: rgba(255,255,255,.4);
    letter-spacing: 1px;
}

/* ============================================================
   ABOUT EXTENDED
   ============================================================ */
.about-extended {
    padding: 100px 0;
    background: var(--white);
}
.about-ext-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-ext-text p {
    color: #555;
    font-size: .95rem;
    margin-bottom: 16px;
    line-height: 1.8;
}
.btn-gold {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 36px;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background .3s, transform .3s;
}
.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}
.btn-gold i { margin-left: 8px; transition: transform .3s; }
.btn-gold:hover i { transform: translateX(5px); }
.about-ext-images {
    position: relative;
}
.about-ext-main-img {
    border-radius: 2px;
    overflow: hidden;
}
.about-ext-main-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}
.about-ext-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 140px;
    height: 140px;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 3px solid var(--gold);
}
.badge-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.badge-text {
    font-size: .7rem;
    color: rgba(255,255,255,.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
    padding: 100px 0;
    background: var(--off-white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,22,40,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}
.gallery-overlay i { color: var(--gold); font-size: 1.5rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10,22,40,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border: 2px solid var(--gold);
}
.lightbox-close {
    position: absolute;
    top: 24px; right: 32px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
    padding: 100px 0;
    background: var(--navy);
}
.testimonials-section .section-label { color: var(--gold); }
.testimonials-section .section-title { color: var(--white); }
.testimonials-carousel {
    position: relative;
    overflow: hidden;
}
.testimonials-track {
    display: flex;
    transition: transform .5s ease;
}
.testimonial-card {
    min-width: 100%;
    padding: 50px 60px;
    box-sizing: border-box;
}
.testimonial-quote {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: .5;
}
.testimonial-text {
    font-family: var(--font-sub);
    font-size: 1.3rem;
    color: rgba(255,255,255,.85);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}
.testimonial-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
}
.testimonial-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.testimonial-author h4 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 2px;
}
.testimonial-author span {
    font-size: .85rem;
    color: var(--gold);
}
.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}
.tst-prev, .tst-next {
    background: none;
    border: 1px solid rgba(255,255,255,.2);
    color: var(--white);
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .9rem;
    transition: background .3s, border-color .3s;
}
.tst-prev:hover, .tst-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}
.tst-dots {
    display: flex;
    gap: 8px;
}
.tst-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    cursor: pointer;
    transition: background .3s;
}
.tst-dot.active {
    background: var(--gold);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .yachts-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--navy);
        padding: 80px 40px;
        transition: right .4s;
        z-index: 999;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .nav-menu.open { right: 0; }
    .nav-links { flex-direction: column; gap: 20px; }
    .nav-container { gap: 12px; }
    .hb-user-menu-slot {
        margin-left: auto;
        margin-right: 8px;
    }
    .hb-user-menu-slot a,
    .hb-user-menu-slot button,
    .hb-user-menu-slot .hb-user-pill {
        min-height: 31px;
        padding: 6px 10px;
        font-size: .72rem;
    }
    .hb-user-menu-slot::after {
        width: 31px;
        height: 31px;
        margin-left: 4px;
    }
    .hb-user-menu-slot li > ul,
    .hb-user-menu-slot .mod-menu__sub {
        right: -42px;
        min-width: 230px;
    }

    .featured-stories { grid-template-columns: 1fr; }
    .featured-card { height: 400px; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-ext-grid { grid-template-columns: 1fr; gap: 40px; }
    .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .why-stats { grid-template-columns: repeat(2, 1fr); }
    .faq-grid { grid-template-columns: 1fr; gap: 30px; }
    .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 40px; padding-right: 0; }
    .timeline-line { left: 10px; }
    .timeline-dot { left: 2px !important; right: auto !important; }
    .history-story-grid { grid-template-columns: 1fr; gap: 40px; }
    .history-story-grid.reverse { direction: ltr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-card { padding: 30px 20px; }
    .testimonial-text { font-size: 1.1rem; }

    .yachts-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .offices-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
}
@media (max-width: 480px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
}

/* Production smartphone polish */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-nav,
    .main-nav.scrolled {
        padding: 10px 0 !important;
        background: rgba(10,22,40,.97) !important;
        box-shadow: 0 2px 24px rgba(0,0,0,.28) !important;
        backdrop-filter: blur(10px);
    }

    .nav-container {
        min-height: 66px;
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1.25rem;
        line-height: 1.22;
        letter-spacing: 4px;
    }

    .logo-tagline {
        font-size: .68rem;
        letter-spacing: 3px;
    }

    .nav-toggle {
        position: relative;
        z-index: 1002;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(201,169,110,.38);
        border-radius: 999px;
        background: rgba(255,255,255,.06);
    }

    .nav-toggle span {
        width: 22px;
    }

    .nav-menu {
        top: 0;
        right: -100%;
        width: min(86vw, 340px);
        height: 100dvh;
        padding: 96px 24px 28px;
        overflow-y: auto;
        background: rgba(10,22,40,.98);
        box-shadow: -18px 0 46px rgba(0,0,0,.36);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-links {
        width: 100%;
        gap: 0;
    }

    .nav-links li,
    .nav-links a {
        width: 100%;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
        letter-spacing: 1.6px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links li {
        position: relative;
        list-style: none;
    }

    .nav-links li.parent > a,
    .nav-links li.deeper > a {
        justify-content: space-between;
    }

    .nav-links li.parent > a::before,
    .nav-links li.deeper > a::before {
        content: '›';
        order: 2;
        margin-left: auto;
        color: var(--gold);
        font-size: 1rem;
        transition: transform .2s ease;
    }

    .nav-links li.parent:hover > a::before,
    .nav-links li.parent:focus-within > a::before,
    .nav-links li.deeper:hover > a::before,
    .nav-links li.deeper:focus-within > a::before {
        transform: rotate(90deg);
    }

    .nav-links ul,
    .nav-links .mod-menu__sub {
        position: static !important;
        display: none;
        width: 100%;
        margin: 0;
        padding: 4px 0 10px 16px;
        border: 0;
        background: transparent !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .nav-links li:hover > ul,
    .nav-links li:focus-within > ul,
    .nav-links li:hover > .mod-menu__sub,
    .nav-links li:focus-within > .mod-menu__sub {
        display: block;
    }

    .nav-links ul a,
    .nav-links .mod-menu__sub a {
        min-height: 34px;
        padding: 8px 0 8px 18px;
        border-bottom: 0;
        color: rgba(255,255,255,.88);
        font-size: .78rem;
        letter-spacing: 1.4px;
    }

    .nav-links ul a::before,
    .nav-links .mod-menu__sub a::before {
        content: '•';
        position: absolute;
        left: 0;
        color: #68aeb8;
        font-size: .8rem;
        transform: none;
    }

    .hero {
        min-height: auto;
        height: auto;
        padding-top: 112px;
        padding-bottom: 46px;
    }

    .hero-content {
        width: min(100% - 28px, 620px);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: clamp(2.3rem, 13vw, 4.2rem);
        line-height: .98;
        word-break: normal;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        line-height: 1.45;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* HB Luxury Articles
   Stile dedicato agli articoli Joomla richiamati dal footer editoriale.
   Il wrapper viene aggiunto dal template quando la view e' com_content.article. */
.hero.hb-component-hero .hb-content-article-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.hero.hb-component-hero .hb-content-article-page .com-content-article,
.hero.hb-component-hero .hb-content-article-page .item-page {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(251,247,238,.96) 100%);
    border: 1px solid rgba(201, 169, 110, .42);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(10, 22, 40, .14);
    padding: clamp(30px, 5vw, 64px);
    color: #0a1628;
}

.hero.hb-component-hero .hb-content-article-page .com-content-article::before,
.hero.hb-component-hero .hb-content-article-page .item-page::before {
    content: "Holiday and Boat";
    display: inline-flex;
    margin-bottom: 18px;
    color: #c9a96e;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hero.hb-component-hero .hb-content-article-page .com-content-article::after,
.hero.hb-component-hero .hb-content-article-page .item-page::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: #0a1628;
}

.hero.hb-component-hero .hb-content-article-page h1,
.hero.hb-component-hero .hb-content-article-page h2,
.hero.hb-component-hero .hb-content-article-page h3 {
    font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
    color: #0a1628;
    letter-spacing: 0;
}

.hero.hb-component-hero .hb-content-article-page h1 {
    max-width: 860px;
    margin: 0 0 26px;
    font-size: clamp(2.35rem, 5vw, 4.65rem);
    line-height: .98;
}

.hero.hb-component-hero .hb-content-article-page h2 {
    margin: 34px 0 14px;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.hero.hb-component-hero .hb-content-article-page h3 {
    margin: 26px 0 10px;
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.hero.hb-component-hero .hb-content-article-page p,
.hero.hb-component-hero .hb-content-article-page li {
    max-width: 900px;
    color: #344154;
    font-size: clamp(1rem, 1.35vw, 1.08rem);
    line-height: 1.78;
}

.hero.hb-component-hero .hb-content-article-page p {
    margin: 0 0 18px;
}

.hero.hb-component-hero .hb-content-article-page ul,
.hero.hb-component-hero .hb-content-article-page ol {
    display: grid;
    gap: 10px;
    margin: 18px 0 24px;
    padding-left: 1.25rem;
}

.hero.hb-component-hero .hb-content-article-page a {
    color: #0b7f73;
    font-weight: 800;
    text-decoration: none;
}

.hero.hb-component-hero .hb-content-article-page a:hover {
    color: #c9a96e;
}

.hero.hb-component-hero .hb-content-article-page .page-header,
.hero.hb-component-hero .hb-content-article-page .page-header h1,
.hero.hb-component-hero .hb-content-article-page .page-header h2 {
    margin-top: 0;
}

.hero.hb-component-hero .hb-content-article-page .article-info,
.hero.hb-component-hero .hb-content-article-page .icons,
.hero.hb-component-hero .hb-content-article-page .tags {
    color: #6f7c8d;
    font-size: .9rem;
}

@media (max-width: 768px) {
    .hero.hb-component-hero .hb-content-article-page {
        width: min(100%, calc(100% - 22px));
    }

    .hero.hb-component-hero .hb-content-article-page .com-content-article,
    .hero.hb-component-hero .hb-content-article-page .item-page {
        border-radius: 16px;
        padding: 28px 22px 34px;
    }

    .hero.hb-component-hero .hb-content-article-page .com-content-article::after,
    .hero.hb-component-hero .hb-content-article-page .item-page::after {
        width: 5px;
    }
}

/* HB Luxury Articles fallback
   Mantiene gli articoli Joomla del footer nello stesso stile anche se il wrapper
   non viene agganciato dalla classe hero in qualche URL generata dal CMS. */
.hb-content-article-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.hb-content-article-page .com-content-article,
.hb-content-article-page .item-page {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(251,247,238,.96) 100%);
    border: 1px solid rgba(201, 169, 110, .42);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(10, 22, 40, .14);
    padding: clamp(30px, 5vw, 64px);
    color: #0a1628;
}

.hb-content-article-page .com-content-article::before,
.hb-content-article-page .item-page::before {
    content: "Holiday and Boat";
    display: inline-flex;
    margin-bottom: 18px;
    color: #c9a96e;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hb-content-article-page .com-content-article::after,
.hb-content-article-page .item-page::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: #0a1628;
}

.hb-content-article-page h1,
.hb-content-article-page h2,
.hb-content-article-page h3 {
    font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
    color: #0a1628;
    letter-spacing: 0;
}

.hb-content-article-page h1 {
    max-width: 860px;
    margin: 0 0 26px;
    font-size: clamp(2.35rem, 5vw, 4.65rem);
    line-height: .98;
}

.hb-content-article-page h2 {
    margin: 34px 0 14px;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.hb-content-article-page h3 {
    margin: 26px 0 10px;
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.hb-content-article-page p,
.hb-content-article-page li {
    max-width: 900px;
    color: #344154;
    font-size: clamp(1rem, 1.35vw, 1.08rem);
    line-height: 1.78;
}

.hb-content-article-page p {
    margin: 0 0 18px;
}

.hb-content-article-page ul,
.hb-content-article-page ol {
    display: grid;
    gap: 10px;
    margin: 18px 0 24px;
    padding-left: 1.25rem;
}

.hb-content-article-page a {
    color: #0b7f73;
    font-weight: 800;
    text-decoration: none;
}

.hb-content-article-page a:hover {
    color: #c9a96e;
}

.hb-content-article-page .page-header,
.hb-content-article-page .page-header h1,
.hb-content-article-page .page-header h2 {
    margin-top: 0;
}

.hb-content-article-page .article-info,
.hb-content-article-page .icons,
.hb-content-article-page .tags {
    color: #6f7c8d;
    font-size: .9rem;
}

@media (max-width: 768px) {
    .hb-content-article-page {
        width: min(100%, calc(100% - 22px));
    }

    .hb-content-article-page .com-content-article,
    .hb-content-article-page .item-page {
        border-radius: 16px;
        padding: 28px 22px 34px;
    }

    .hb-content-article-page .com-content-article::after,
    .hb-content-article-page .item-page::after {
        width: 5px;
    }
}

@media (max-width: 420px) {
    .logo-text {
        font-size: 1.05rem;
        letter-spacing: 3px;
    }

    .logo-tagline {
        font-size: .62rem;
        letter-spacing: 2.4px;
    }

    .nav-container {
        min-height: 62px;
        padding: 0 12px;
    }

    .hero {
        padding-top: 124px;
    }
}

/* Menu utente alto-destra: trasforma il modulo login Joomla in un pannello stile Click&Boat. */
.hb-user-menu-slot {
    margin-left: 18px;
}

.hb-user-menu-slot .mod-login {
    position: relative;
    width: 42px;
    height: 42px;
    margin: 0;
}

.hb-user-menu-slot .mod-login::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(201, 169, 110, .55);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, #9aa3af 0 5px, transparent 6px),
        radial-gradient(circle at 50% 74%, #9aa3af 0 11px, transparent 12px),
        #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
    cursor: pointer;
}

.hb-user-menu-slot .mod-login::after {
    content: "";
    position: absolute;
    left: -92px;
    top: 50%;
    width: 86px;
    height: 34px;
    transform: translateY(-50%);
    border: 1px solid rgba(201, 169, 110, .4);
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.hb-user-menu-slot .mod-login__userdata {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 1100;
    width: min(330px, calc(100vw - 28px));
    padding: 20px;
    border: 1px solid rgba(201, 169, 110, .3);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(7, 20, 38, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.hb-user-menu-slot .mod-login:hover .mod-login__userdata,
.hb-user-menu-slot .mod-login:focus-within .mod-login__userdata {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hb-user-menu-slot .mod-login__userdata::before {
    content: "Aiuto";
    display: block;
    margin-bottom: 14px;
    color: var(--navy);
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 700;
}

.hb-user-menu-slot .mod-login__username,
.hb-user-menu-slot .mod-login__password,
.hb-user-menu-slot .mod-login__remember,
.hb-user-menu-slot .mod-login__submit,
.hb-user-menu-slot .mod-login__twofactor,
.hb-user-menu-slot .mod-login__options {
    margin: 0 0 12px;
}

.hb-user-menu-slot .mod-login input.form-control {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(10, 22, 40, .18);
    border-radius: 10px;
    padding: 0 12px;
    background: #f8fafc;
    color: var(--navy);
    font-size: .9rem;
}

.hb-user-menu-slot .mod-login .input-group {
    display: flex;
    align-items: stretch;
}

.hb-user-menu-slot .mod-login .input-group-text,
.hb-user-menu-slot .mod-login .input-password-toggle {
    min-width: 42px;
    border: 1px solid rgba(10, 22, 40, .18);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: #fff;
    color: var(--navy);
    box-shadow: none;
}

.hb-user-menu-slot .mod-login button,
.hb-user-menu-slot .mod-login .btn {
    min-height: 42px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
    box-shadow: none;
}

.hb-user-menu-slot .mod-login__options {
    padding-top: 12px;
    border-top: 1px solid rgba(10, 22, 40, .1);
}

.hb-user-menu-slot .mod-login__options a {
    display: block;
    min-height: auto;
    padding: 7px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--navy);
    text-align: left;
}

@media (max-width: 768px) {
    .hb-user-menu-slot {
        margin-left: auto;
        margin-right: 10px;
    }

    .hb-user-menu-slot .mod-login {
        width: 38px;
        height: 38px;
    }

    .hb-user-menu-slot .mod-login::after {
        display: none;
    }

    .hb-user-menu-slot .mod-login__userdata {
        right: -56px;
        top: calc(100% + 18px);
    }
}

/* HB Unified Auth: menu profilo reale in alto a destra.
   Disattiva la vecchia pseudo-icona dello slot, perche non era cliccabile. */
.hb-user-menu-slot:has([data-hb-auth-nav-module]),
.hb-user-menu-slot.hb-user-menu-slot--auth-modal {
    position: fixed !important;
    top: 18px;
    right: 18px !important;
    left: auto !important;
    width: auto !important;
    margin: 0 !important;
    z-index: 2600 !important;
}

.hb-user-menu-slot:has([data-hb-auth-nav-module])::after,
.hb-user-menu-slot.hb-user-menu-slot--auth-modal::after {
    display: none;
    content: none;
}

.hb-user-menu-slot [data-hb-auth-nav-module] {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    min-width: 0 !important;
    gap: 0 !important;
}

.hb-user-menu-slot [data-hb-auth-modal-open].hb-nav-auth-trigger {
    cursor: pointer;
    pointer-events: auto;
    min-height: 44px;
    padding: 0 8px 0 14px;
    border-radius: 999px;
    position: relative;
    z-index: 2601;
    margin: 0 !important;
}

.hb-user-menu-slot [data-hb-auth-modal-open] .visually-hidden,
.hb-user-menu-slot [data-hb-auth-modal-open] .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hb-user-menu-slot .hb-auth-modal,
.hb-auth-modal.is-open,
.hb-auth-modal.show {
    z-index: 5000;
}

.hb-auth-modal.is-open .hb-auth-modal-dialog,
.hb-auth-modal.show .hb-auth-modal-dialog {
    margin-left: auto;
    margin-right: auto;
}

/* HB Unified Auth desktop: il pannello deve aprirsi come overlay agganciato
   all'angolo alto destro, senza entrare nel flusso della pagina. */
@media (min-width: 769px) {
    .hb-auth-modal {
        position: fixed !important;
        inset: 0 !important;
        z-index: 5000 !important;
        display: none;
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        padding: 86px 22px 24px !important;
        overflow: hidden auto;
        background: rgba(7, 16, 30, .42);
        pointer-events: none;
    }

    .hb-auth-modal.is-open,
    .hb-auth-modal.show {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto;
    }

    .hb-auth-modal.is-open .hb-auth-modal-dialog,
    .hb-auth-modal.show .hb-auth-modal-dialog,
    .hb-auth-modal .hb-auth-modal-dialog {
        position: absolute !important;
        top: 72px !important;
        right: 22px !important;
        left: auto !important;
        width: min(var(--hb-auth-modal-width, 1080px), calc(100vw - 44px)) !important;
        max-width: min(var(--hb-auth-modal-width, 1080px), calc(100vw - 44px)) !important;
        margin: 0 !important;
        transform: none !important;
    }

    .hb-auth-modal .hb-auth-modal-content {
        width: 100% !important;
        border-radius: 18px;
        overflow: hidden;
    }

    body.hb-auth-modal-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .hb-user-menu-slot:has([data-hb-auth-nav-module]),
    .hb-user-menu-slot.hb-user-menu-slot--auth-modal {
        top: 17px;
        right: 64px !important;
        width: 42px !important;
        height: 42px !important;
    }

    .hb-user-menu-slot [data-hb-auth-modal-open].hb-nav-auth-trigger {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        gap: 0 !important;
        box-shadow: 0 10px 26px rgba(0, 0, 0, .18) !important;
    }

    .hb-user-menu-slot [data-hb-auth-modal-open] .hb-nav-auth-locale,
    .hb-user-menu-slot [data-hb-auth-modal-open] .hb-nav-auth-currency {
        display: none !important;
    }

    .hb-user-menu-slot [data-hb-auth-modal-open] .hb-nav-auth-avatar {
        display: block !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        background:
            radial-gradient(circle at 50% 36%, #8f98a6 0 5px, transparent 6px),
            radial-gradient(circle at 50% 72%, #8f98a6 0 11px, transparent 12px),
            #fff !important;
    }

    .hb-user-menu-slot [data-hb-auth-nav-module],
    .hb-user-menu-slot [data-hb-auth-nav-module] > .hb-nav-auth-trigger {
        overflow: visible !important;
    }

    .hb-auth-modal.is-open,
    .hb-auth-modal.show {
        padding: 16px !important;
    }

    .hb-auth-modal.is-open .hb-auth-modal-dialog,
    .hb-auth-modal.show .hb-auth-modal-dialog {
        width: min(100%, calc(100vw - 24px)) !important;
        margin: 12px auto !important;
    }
}
