:root{
    --gold:#c9a14a;
    --dark:#1c1c1c;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ===== STRUTTURA BASE PER FOOTER IN BASSO ===== */
html, body{
    height:100%;
}

body{
    font-family:'Montserrat',sans-serif;
    color:var(--dark);
    display:flex;
    flex-direction:column;
}

/* wrapper che spinge il footer in basso */
.page-wrapper{
    flex:1;
}

/* ===== HEADER ===== */
header{
    position:fixed;
    top:0;
    width:100%;
    background:#fff;
    padding:20px 60px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
    z-index:1000;
}

header h1{
    font-family:'Playfair Display',serif;
    color:var(--gold);
}

nav a{
    margin-left:25px;
    text-decoration:none;
    color:var(--dark);
    font-weight:600;
}

.nav-right{
    display:flex;
    gap:15px;
    align-items:center;
}

.nav-right input{
    padding:7px 14px;
    border:1px solid #ddd;
    border-radius:20px;
}

.icon{
    cursor:pointer;
}

/* ===== SEZIONI ===== */
section{
    padding:140px 10%;
}

/* ===== HERO ===== */
.hero-image{
    position:relative;
    width:100%;
    height:80vh;
    background-size:cover;
    background-position:center;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:#fff;
    text-align:center;
}

.hero-overlay h2{
    font-family:'Playfair Display',serif;
    font-size:4rem;
    margin:0;
}

.hero-overlay p{
    font-size:1.4rem;
    margin-top:10px;
}

/* ===== TESTO SOTTO HERO ===== */
.hero-text{
    max-width:1000px;
    margin:80px auto;
    padding:0 20px;
    font-size:1.1rem;
    line-height:1.8;
}

/* ===== TITOLI ===== */
.section-title{
    font-family:'Playfair Display',serif;
    font-size:40px;
    color:var(--gold);
    margin-bottom:40px;
}

/* ===== PRODOTTI ===== */
.products{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.product{
    border:1px solid #eee;
    padding:20px;
    text-align:center;
}

.product img{
    width:100%;
    height:180px;
    object-fit:cover;
    margin-bottom:15px;
}

.product button{
    margin-top:15px;
    width:100%;
    padding:12px;
    background:var(--gold);
    color:#fff;
    border:none;
    cursor:pointer;
    font-weight:600;
}

/* ===== MODALE / CARRELLO ===== */
.modal-bg{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:2000;
}

.modal{
    background:#fff;
    padding:30px;
    width:90%;
    max-width:500px;
    border-radius:8px;
}

.cart-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.cart-item .qty{
    display:flex;
    gap:5px;
    align-items:center;
}

.cart-item .qty button{
    width:25px;
    height:25px;
    background:var(--gold);
    color:#fff;
    border:none;
    cursor:pointer;
}

.modal-actions{
    display:flex;
    justify-content:space-between;
    margin-top:20px;
}

.btn{
    padding:10px 15px;
    border:none;
    cursor:pointer;
    font-weight:600;
}

.btn-primary{
    background:var(--gold);
    color:#fff;
}

.btn-secondary{
    background:#ddd;
}

/* ===== CARRELLO ICONA ===== */
.cart-icon{
    position:relative;
    font-size:34px;
    cursor:pointer;
    color:var(--gold);
    transition:0.3s;
}

.cart-icon:hover{
    transform:scale(1.1);
}

.cart-icon span{
    position:absolute;
    top:-8px;
    right:-12px;
    background:var(--gold);
    color:#fff;
    font-size:13px;
    font-weight:700;
    padding:3px 7px;
    border-radius:50%;
    min-width:22px;
    text-align:center;
}

/* ===== FOOTER ===== */
.site-footer{
    background:#000;
    color:var(--gold);
    text-align:center;
    padding:30px 15px;
    font-family:'Montserrat',sans-serif;
}

.footer-line{
    width:100%;
    height:2px;
    background:var(--gold);
    margin-bottom:20px;
}

.footer-social{
    margin-bottom:12px;
}

.footer-social a{
    color:var(--gold);
    font-size:22px;
    margin:0 12px;
    text-decoration:none;
    transition:transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover{
    color:#f5d76e;
    transform:scale(1.15);
}

.site-footer p{
    font-size:14px;
    margin:0;
    letter-spacing:0.5px;
}
