
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
html{
    scroll-behavior:smooth;
}
body{
    background:#000;
    color:#fff;
    font-family:"Inter", system-ui, sans-serif;
}
.page-header-spacer{
    height:80px;
}
.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}
.fade-in{
    opacity:0;
    transform:translateY(20px);
    transition:all .8s ease;
}
.fade-in.visible{
    opacity:1;
    transform:translateY(0);
}
.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:14px 32px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:rgba(0,0,0,.85);
    border-bottom:1px solid rgba(255,215,0,.35);
    backdrop-filter:blur(6px);
    z-index:999;
}
.logo-badge{
    width:42px;
    height:42px;
    border-radius:50%;
    background:radial-gradient(circle at 30% 30%, #fff7c3, #d4a019);
    border:2px solid #000;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#000;
    font-weight:800;
    font-size:17px;
}
.brand{
    display:flex;
    align-items:center;
    gap:10px;
}
.brand-title{
    font-family:"Times New Roman", serif;
    font-size:22px;
    letter-spacing:1px;
    color:#f4d26a;
}
.nav-links{
    display:flex;
    align-items:center;
    gap:24px;
}
.nav-links a{
    text-decoration:none;
    color:#f9e7a3;
    font-size:15px;
    transition:.3s;
}
.nav-links a:hover,
.nav-links a.active{
    color:#fff;
}
.nav-cta{
    padding:9px 20px;
    border-radius:999px;
    background:#ffd24b;
    color:#000;
    font-weight:600;
    text-decoration:none;
    font-size:14px;
    border:1px solid #ffd24b;
    box-shadow:0 0 20px rgba(255,210,75,.4);
}
.nav-cta:hover{
    background:#ffe07f;
}
.menu-toggle{
    display:none;
    width:42px;
    height:42px;
    border-radius:999px;
    border:none;
    background:#ffd24b;
    color:#000;
    font-size:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}
@media(max-width:850px){
    .nav-links{
        position:fixed;
        right:20px;
        top:80px;
        background:rgba(0,0,0,.95);
        padding:20px;
        border-radius:16px;
        border:1px solid rgba(255,215,0,.4);
        flex-direction:column;
        gap:16px;
        display:none;
    }
    .nav-links.open{
        display:flex;
    }
    .menu-toggle{
        display:flex;
    }
    .nav-cta{
        display:none;
    }
}
.hero{
    height:100vh;
    min-height:650px;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}
.hero-bg{
    position:absolute;
    inset:0;
    background:url("img/sala_buffet.png") center/cover no-repeat;
    filter:brightness(.40);
    z-index:-2;
}
.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.95));
    z-index:-1;
}
.hero-content{
    max-width:800px;
    padding-top:80px;
}
.hero-title-main{
    font-family:"Times New Roman", serif;
    font-size:52px;
    letter-spacing:3px;
    color:#f4d26a;
    margin-bottom:8px;
}
.hero-subred{
    color:#ff4a4a;
    font-size:20px;
    font-weight:700;
}
.hero-subgold{
    color:#f9e7a3;
    font-size:18px;
    margin-bottom:25px;
}
.hero-form-wrapper{
    width:90%;
    max-width:450px;
    background:rgba(0,0,0,.85);
    border:1px solid rgba(255,210,75,.5);
    border-radius:18px;
    padding:22px;
    box-shadow:0 0 35px rgba(255,210,75,.35);
    margin:auto;
}
.hero-form input,
.hero-form select{
    width:100%;
    padding:12px;
    margin-bottom:10px;
    border-radius:8px;
    border:none;
    background:#111;
    color:#fff;
}
.hero-form button{
    width:100%;
    padding:12px;
    border-radius:999px;
    border:none;
    background:#ffd24b;
    color:#000;
    font-weight:700;
    cursor:pointer;
    font-size:16px;
}
.hero-form button:hover{
    background:#ffe07f;
}
.floating-cta{
    position:absolute;
    bottom:20px;
    right:20px;
    background:#ffd24b;
    color:#000;
    border-radius:999px;
    padding:10px 18px;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    box-shadow:0 0 25px rgba(255,210,75,.5);
}
@media(max-width:850px){
    .floating-cta{
        display:none;
    }
}
.section-title{
    font-family:"Times New Roman", serif;
    font-size:36px;
    text-align:center;
    color:#f4d26a;
    margin-bottom:10px;
}
.section-subtitle{
    text-align:center;
    color:#ccc;
    margin-bottom:40px;
}
.card-dark{
    background:#111;
    padding:22px;
    border-radius:18px;
    border:1px solid rgba(255,210,75,.4);
    box-shadow:0 0 30px rgba(255,210,75,.25);
}
.card-dark h3{
    color:#ffd24b;
    margin-bottom:10px;
}
.badge{
    display:inline-block;
    margin-top:10px;
    background:#ffd24b;
    color:#000;
    padding:6px 14px;
    border-radius:999px;
    font-weight:600;
    font-size:13px;
}
.dashboard-grid,
.sectors-grid,
.stats-grid,
.features-grid,
.steps-grid,
.testimonials-grid,
.pricing-grid{
    display:grid;
    gap:24px;
}
.dashboard-grid{
    grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
}
.sectors-grid{
    grid-template-columns:repeat(auto-fit, minmax(230px,1fr));
}
.stats-grid{
    grid-template-columns:repeat(auto-fit, minmax(200px,1fr));
}
.pricing-grid{
    grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
}
.sector-card{
    border:1px solid rgba(255,210,75,.4);
    background:#0e0e0e;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 0 35px rgba(255,210,75,.3);
    transition:.3s;
}
.sector-card:hover{
    transform:translateY(-5px);
}
.sector-card img{
    width:100%;
    height:170px;
    object-fit:cover;
}
.sector-body{
    padding:18px;
}
.sector-title{
    color:#ffd24b;
    font-weight:700;
    margin-bottom:6px;
    display:flex;
    align-items:center;
    gap:6px;
}
.sector-text{
    color:#ddd;
    font-size:14px;
}
.stat-card{
    border:1px solid rgba(255,210,75,.4);
    background:#0c0c0c;
    border-radius:18px;
    padding:20px;
    text-align:center;
    box-shadow:0 0 25px rgba(255,210,75,.3);
}
.stat-number{
    color:#ff4a4a;
    font-size:32px;
    font-weight:700;
    margin-bottom:10px;
}
.form-card{
    background:#111;
    border-radius:18px;
    border:1px solid rgba(255,210,75,.35);
    padding:26px;
    max-width:420px;
    margin:120px auto;
    box-shadow:0 0 30px rgba(255,210,75,.3);
}
.form-card h2{
    text-align:center;
    margin-bottom:18px;
    font-family:"Times New Roman";
    color:#ffd24b;
}
.form-card input,
.form-card select,
.form-card textarea{
    width:100%;
    padding:12px;
    margin-bottom:14px;
    border-radius:8px;
    border:none;
    background:#181818;
    color:#fff;
}
.form-card button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:999px;
    background:#ffd24b;
    color:#000;
    font-weight:700;
    cursor:pointer;
}
.faq-item{
    border-bottom:1px solid rgba(255,210,75,.25);
    padding:14px 0;
    cursor:pointer;
}
.faq-item h3{
    color:#ffd24b;
    margin-bottom:6px;
}
.faq-item p{
    display:none;
    color:#ddd;
    margin-top:4px;
}
.faq-item.open p{
    display:block;
}
.footer{
    padding:28px;
    text-align:center;
    font-size:13px;
    border-top:1px solid rgba(255,210,75,.3);
    color:#bbb;
}
@media(max-width:800px){
    .hero-title-main{
        font-size:40px;
    }
    .hero-subgold{
        font-size:16px;
    }
}

.profile-hero{
    padding-top:100px;
    padding-bottom:40px;
}
.profile-grid{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:26px;
}
.profile-card{
    background:#111;
    border-radius:18px;
    border:1px solid rgba(255,210,75,.4);
    padding:18px;
    box-shadow:0 0 25px rgba(255,210,75,.3);
}
.profile-card img{
    width:100%;
    border-radius:14px;
    margin-bottom:10px;
}
.profile-name{
    font-size:20px;
    color:#ffd24b;
    margin-bottom:4px;
}
.profile-meta{
    color:#ccc;
    font-size:14px;
}
.tag{
    display:inline-block;
    padding:4px 10px;
    border-radius:999px;
    background:#222;
    border:1px solid rgba(255,210,75,.5);
    font-size:11px;
    margin-right:6px;
    margin-top:6px;
}
.candidate-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-top:10px;
}
.candidate-card{
    background:#111;
    border-radius:18px;
    border:1px solid rgba(255,210,75,.4);
    padding:14px;
    box-shadow:0 0 22px rgba(255,210,75,.25);
}
.candidate-card img{
    width:100%;
    border-radius:14px;
    margin-bottom:8px;
}
.candidate-name{
    color:#ffd24b;
    font-weight:600;
}
.candidate-role{
    color:#ccc;
    font-size:13px;
    margin-bottom:4px;
}
@media(max-width:850px){
    .profile-grid{
        grid-template-columns:1fr;
    }
}

/* HERO PRICING */
.hero-pricing {
  position: relative;
  height: 45vh;
  background: url('img/A_webpage_section_image_for_subscription_plans_of_.png') center/cover no-repeat;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  color: gold; text-align: center;
}
.hero-pricing .overlay {
  position:absolute; top:0;left:0;width:100%;height:100%;
  background: rgba(0,0,0,0.55);
}
.hero-pricing h1 { font-size: 3rem; z-index:2; }
.hero-pricing p { font-size:1.2rem; z-index:2; color:white; }

/* PRICING CARDS */
.pricing-container {
  display:flex; justify-content:center; gap:40px;
  padding:60px 0; flex-wrap:wrap;
}
.pricing-card.deluxe {
  background:black; border:3px solid gold;
  box-shadow:0 0 25px rgba(255,215,0,0.4);
  width:300px; padding:30px; border-radius:20px;
  text-align:center;
}
.pricing-card h2 { color:gold; margin-bottom:10px; }
.pricing-card .price { color:white; font-size:1.5rem; margin:15px 0; }
.pricing-card ul { list-style:none; padding:0; color:white; line-height:1.8; }
.cta-gold {
  margin-top:20px; padding:12px 25px; border:2px solid gold; background:black;
  color:gold; border-radius:30px; cursor:pointer; font-size:1rem;
}
.cta-gold:hover { background:gold; color:black; }

.pricing-image-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.pricing-card h2{
    color:#f4d26a;
    margin-top: 6px;
    margin-bottom: 14px;
    font-size:20px;
}
.pricing-card .price{
    margin-bottom:18px;
}
.pricing-card ul{
    margin-top:14px;
}

/* Micro-upgrade animations */
.card-dark{
    transition: transform .25s, box-shadow .25s;
}
.card-dark:hover{
    transform: translateY(-4px);
    box-shadow:0 0 25px rgba(244,210,106,.4);
}
.nav-cta{
    transition: background .25s, color .25s, transform .2s;
}
.nav-cta:hover{
    transform: scale(1.05);
}

/* Step progress bar */
.step-progress{
    width:90%;
    max-width:600px;
    margin:0 auto 15px auto;
    height:6px;
    background:#222;
    border-radius:999px;
    overflow:hidden;
}
.step-progress-bar{
    height:100%;
    width:66%;
    background:linear-gradient(90deg,#f4d26a,#ff4a4a);
    border-radius:999px;
    animation:progressMove 1s ease-out;
}
.step-progress-bar.done{
    width:100%;
}
@keyframes progressMove{
    from{width:0;}
    to{width:66%;}
}

/* Modal overlay */
.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}
.modal-card{
    background:#050505;
    border-radius:20px;
    border:2px solid #f4d26a;
    padding:22px 24px;
    width:90%;
    max-width:360px;
    text-align:center;
    box-shadow:0 0 30px rgba(244,210,106,.7);
}
.modal-card h3{
    color:#f4d26a;
    margin-bottom:8px;
}
.modal-actions{
    margin-top:18px;
    display:flex;
    gap:10px;
    justify-content:center;
    flex-wrap:wrap;
}
.nav-cta.secondary{
    background:#111;
    color:#f4d26a;
    border:1px solid #555;
}

/* Gold bullet list */
.gold-list{
    list-style:none;
    padding-left:0;
}
.gold-list li{
    position:relative;
    padding-left:18px;
    margin-bottom:4px;
}
.gold-list li::before{
    content:"★";
    position:absolute;
    left:0;
    top:0;
    font-size:11px;
    color:#f4d26a;
}

/* Mobile tweaks */
@media(max-width:600px){
    .navbar{
        padding:10px 14px;
    }
    .section-title{
        font-size:20px;
    }
    .card-dark{
        padding:20px !important;
    }
}

/* V14 — Fix volto non tagliato nelle immagini */
.mansione-card img,
.pricing-image-wrap img,
.candidate-card img,
.profile-card img,
.img-face-fix {
    object-fit: cover !important;
    object-position: top center !important;
}

/* V15 — Immagini mansioni con volto sempre visibile */
.mansione-card img {
    height: 260px !important;        /* card più alta */
    width: 100% !important;
    object-fit: cover !important;
    object-position: center top !important; /* centra il volto */
}

/* V16 — Immagini mansioni con volto corretto (center 20%) */
.mansione-card img,
.mansioni-card img,
.mansione img {
    height: 260px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
}

/* V17 — Immagini settori/mansioni centrate correttamente */
.sector-card img {
    height: 260px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    border-radius: 12px !important;
}
