/* ==========================================================
   Éclaire Studio – Stile principale
   Palette: grigio / bianco / nero
   Font:
   - Testo & titoli: Playfair Display (da Google Fonts)
   - Logo "Éclaire": Playfair Display
   - Logo "Studio": Futura (se presente su sistema) + fallback
   ========================================================== */

:root {
    --bg-body:        #f5f5f5;
    --bg-panel:       #ffffff;
    --bg-panel-subtle:#f0f0f0;
    --border-soft:    #dddddd;
    --border-strong:  #111111;
    --text-main:      #111111;
    --text-muted:     #555555;
    --text-soft:      #888888;
    --accent:         #bfbfbf;
    --accent-soft:    #d7d7d7;
}

/* Reset leggero */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Playfair Display", "Times New Roman", serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
}

/* Layout principale */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Barra superiore */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background-color: rgba(245, 245, 245, 0.98);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(6px);
}

/* Brand */
.brand-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: 0.04em;
}

.brand-eclaire {
    font-size: 1.25rem;
    font-weight: 600;
}

.brand-studio {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: "Futura", "Trebuchet MS", Arial, sans-serif; /* Futura per "Studio" */
    letter-spacing: 0.18em;
}

/* Icona hamburger – integrata nell'header, senza bottone rotondo */
.menu-toggle {
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.22rem;
    cursor: pointer;
}

/* tre linee sottili, minimal */
.menu-toggle span {
    display: block;
    height: 1px;
    background-color: var(--text-main);
    border-radius: 999px;
    width: 18px;
    opacity: 0.9;
    transform-origin: left center;
    transition: width 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

/* lunghezze leggermente diverse per un tocco "design" */
.menu-toggle span:nth-child(1) {
    width: 16px;
}

.menu-toggle span:nth-child(2) {
    width: 12px;
    opacity: 0.7;
}

.menu-toggle span:nth-child(3) {
    width: 20px;
}

/* hover: le linee si allineano e si allungano leggermente */
.menu-toggle:hover span {
    width: 20px;
    opacity: 1;
}

.menu-toggle:hover span:nth-child(2) {
    width: 20px;
}

/* Link carrello – icona integrata nell'header (emoji) */
.cart-link {
    text-decoration: none;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-icon {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-link:hover .cart-icon {
    transform: translateY(-1px);
}

/* Menu laterale */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid var(--border-soft);
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    z-index: 30;
    display: flex;
    flex-direction: column;
}

.side-menu--open {
    transform: translateX(0);
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.menu-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.side-menu ul {
    list-style: none;
    padding: 1rem 0;
}

.side-menu li + li {
    margin-top: 0.25rem;
}

.side-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
}

.side-menu a:hover {
    background-color: var(--bg-panel-subtle);
}

.side-menu a.active {
    background-color: var(--text-main);
    color: #ffffff;
}

/* Overlay per mobile */
.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
    z-index: 25;
}

.side-menu-overlay--visible {
    opacity: 1;
    visibility: visible;
}

/* Contenuto pagina */
.page-content {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 2.5rem;
}

/* Layout home: niente spazio extra in alto e meno in basso */
.page-content--home {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
}

/* Hero */
.hero {
    padding: 2.5rem 0 2rem;
}

.hero-compact {
    padding-top: 2rem;
}

.hero-inner {
    max-width: 700px;
}

/* Hero centrato per la home – senza min-height per evitare "vuoto" sopra e sotto */
.hero--center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 0.5rem;
}

/* Solo in home: hero con pochissimo spazio sopra/sotto */
.page-content--home .hero {
    padding: 0.5rem 0 0.5rem;
}

.hero-inner--center {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-inner--center .hero-text {
    max-width: 560px;
}

.hero-inner--center .hero-actions {
    justify-content: center;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--text-soft);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-text {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 520px;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Sezioni */
.section {
    padding: 1.75rem 0;
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
}

.section-inner.narrow {
    max-width: 640px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-intro {
    font-size: 0.96rem;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 1.5rem;
}

.section-note {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 1.25rem;
}

/* Bottoni */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-decoration: none;
    background: #111111;
    color: #ffffff;
    border: 1px solid #111111;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-strong);
}

.btn-primary:hover,
.btn-outline:hover {
    opacity: 0.88;
}

/* Grid collezioni */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.collection-box {
    border: 1px solid var(--border-soft);
    background: var(--bg-panel);
    padding: 1.4rem 1.2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-box:hover {
    border-color: var(--border-strong);
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

/* Grid prodotti */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.3rem;
}

.product-card {
    background-color: var(--bg-panel);
    border-radius: 10px;
    padding: 1.1rem 1.1rem 1.2rem;
    border: 1px solid #e1e1e1;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* Contenitore immagine prodotto – per foto “marmo cenere” */
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;     /* formato verticale elegante */
    overflow: hidden;
    border-radius: 18px;      /* angoli più morbidi */
    background: #f3f3f3;      /* grigio chiaro neutro */
}

/* Placeholder SOLO testo (se non c'è immagine) */
.product-image.placeholder {
    border: 1px dashed var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-soft);
}

/* Immagine dentro la card – riempie senza deformarsi */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* ritaglia senza deformare */
    display: block;
}


.product-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.product-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-soy-note {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.product-gift {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.product-gift a {
    color: var(--text-main);
    text-decoration: underline;
}

/* Sezione cera di soia */
.section-soy {
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

.soy-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 1rem;
}

.soy-card {
    background-color: var(--bg-panel);
    border-radius: 10px;
    border: 1px solid #e1e1e1;
    padding: 1rem 1.1rem;
}

.soy-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.soy-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Layout due colonne */
.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 1.75rem;
}

.side-panel {
    background-color: var(--bg-panel);
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    border: 1px solid #e1e1e1;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.side-panel h3 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

/* Liste puntate */
.bullet-list {
    list-style: disc;
    padding-left: 1.1rem;
    margin-top: 0.6rem;
    font-size: 0.9rem;
}

.bullet-list li + li {
    margin-top: 0.25rem;
}

/* Form */
.form-card {
    background-color: var(--bg-panel);
    border-radius: 10px;
    padding: 1.1rem 1.2rem 1.2rem;
    border: 1px solid #e1e1e1;
    margin-bottom: 1.25rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.field-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.field-group input,
.field-group select,
.field-group textarea {
    border: 1px solid #d3d3d3;
    border-radius: 6px;
    padding: 0.5rem 0.55rem;
    font-family: inherit;
    font-size: 0.9rem;
    background-color: #ffffff;
}

.field-group textarea {
    resize: vertical;
}

/* Feedback form */
.form-feedback {
    border-radius: 10px;
    border: 1px solid #c7c7c7;
    background: var(--bg-panel-subtle);
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
}

/* Regali – highlight cards */
.gift-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

.gift-highlights article {
    background-color: var(--bg-panel);
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    font-size: 0.9rem;
}

.gift-highlights h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

/* Sezione centrata */
.section-centered {
    display: flex;
    align-items: center;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 1.75rem 1.5rem 2rem;
    margin-top: auto;
    background-color: #f0f0f0;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.footer-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
}

.footer-brand .brand-eclaire {
    font-size: 1.1rem;
}

.footer-brand .brand-studio {
    font-size: 0.75rem;
}

.footer-meta {
    margin-top: 0.4rem;
}

/* Monospazio per email/handle */
.mono {
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
}

/* Responsiveness */
@media (min-width: 900px) {
    .top-bar {
        padding-inline: 2.5rem;
    }

    .page-content {
        padding-inline: 2.5rem;
    }
}

@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Barra riepilogo shop */
.shop-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    background-color: var(--bg-panel);
    border-radius: 10px;
    border: 1px solid #e1e1e1;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

/* Messaggi shop */
.shop-message {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #d3d3d3;
    background-color: var(--bg-panel-subtle);
}

.shop-message--success {
    border-color: #9cc49c;
}

.shop-message--error {
    border-color: #c49c9c;
}

/* Prezzi */
.product-price {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.2rem;
}

.product-meta {
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* Field inline (quantità) */
.field-group.inline {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
}

/* Tabella carrello */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.cart-table th,
.cart-table td {
    border-bottom: 1px solid #e1e1e1;
    padding: 0.5rem 0.4rem;
    text-align: left;
}

.cart-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Azioni carrello */
.cart-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Riepilogo carrello */
.cart-summary {
    margin-top: 1.5rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.cart-note {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.cart-checkout-note {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-top: 0.5rem;
}

/* Pulsante rimuovi semplificato */
.cart-remove-btn {
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.cart-total-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.cart-total-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* Metodi di pagamento */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.shipping-form {
    margin: 0.75rem 0 1rem;
}

.shipping-form .btn-small {
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
}

/* Footer links */
.footer-links {
    margin: 0.75rem 0;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}