/* ===================================
   VROSART.COM - Main Stylesheet
   Clean, semantic CSS3 implementation
   =================================== */

/* ===================================
   1. RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette */
    --primary-color: #000000;
    --secondary-color: #FAF7F2;
    --third-color: #FFFFFF;
    --text-color: #2b2b2b;
    --text-light: #666666;
    --border-color: #e5e5e5;
    --hover-bg: #f8f8f8;

    /* Typography */
    --font-primary: 'Avenir', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Didot', 'Bodoni MT', 'Times New Roman', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Flexbox sul body per spingere sempre il footer in fondo */
body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Il contenuto principale occupa lo spazio disponibile, il footer resta in fondo */
main {
    flex: 1;
    min-width: 0; /* évite que main force le body à dépasser la largeur du viewport */
    padding-top: var(--header-height); /* compensa l'header fisso */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ===================================
   2. TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: 0.01em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   3. UTILITIES
   =================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   4. LOADING STATES
   =================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================
   5. HEADER & NAVIGATION
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-image {
    height: clamp(30px, 3vw, 60px);
    width: auto;
    max-height: 60px;
    display: block;
}

.logo span {
    font-family: var(--font-heading);
    font-size: clamp(10px, 1.5vw, 20px);
    letter-spacing: 0.05em;
    font-weight: 400;
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.main-nav a {
    font-size: clamp(11px, 1.1vw, 16px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: clamp(10px, 0.9vw, 14px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
    margin-left: 2rem; /* crea spazio prima del bottone login */
}

.lang-switcher .active {
    font-weight: 600;
    text-decoration: underline;
}

.login-btn {
    padding: clamp(4px, 0.4vw, 8px) clamp(12px, 1.2vw, 20px);
    font-size: clamp(10px, 0.9vw, 14px);
    border: 1px solid var(--primary-color);
    background: transparent;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1010;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animazione Hamburger -> X */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Icona carrello nell'header */
.cart-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #5a4a3a;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: none;
    align-items: center;
    justify-content: center;
}

.cart-badge.visible {
    display: flex;
}

/* ===================================
   6. HOME PAGE / HERO SECTION
   =================================== */
.hero-wrapper {
    width: 100%;
    background-color: var(--third-color);
    display: flex;
    justify-content: center;
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    aspect-ratio: 16 / 12;
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--third-color);
}

.hero-text-box {
    position: absolute;
    top: 14%;
    right: 8%;
    width: 34%;
    z-index: 15;
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-text-box h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.0vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 2%;
}

.hero-text-box p {
    font-size: clamp(0.8rem, 1.2vw, 1.1rem);
    line-height: 1.5;
    color: #444;
}

.hero-collage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-collage img {
    height: auto;
    object-fit: contain;
}

.img-wave {
    position: absolute;
    top: 5%;
    left: 0;
    width: 50%;
    z-index: 1;
    animation-delay: 0.4s;
}

.img-man {
    position: absolute;
    bottom: 0%;
    left: 15%;
    width: 25%;
    z-index: 3;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
    animation-delay: 1s;
}

.img-flower {
    position: absolute;
    bottom: 0%;
    right: 5%;
    width: 42%;
    z-index: 2;
    animation-delay: 0.7s;
}

/* ===================================
   7. ARTICLES SECTION
   =================================== */
.articles-section .section-header {
    padding-top: 15vh;
    padding-bottom: 10vh;
    text-align: center;
}

.articles-section h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.article-card {
    background: var(--secondary-color);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: var(--spacing-md);
}

/* ===================================
   8. PRODUCTS / ORIGINALS SUBSECTION
   =================================== */
.originals-subsection {
    margin-top: var(--spacing-lg);
}

.subsection-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.product-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-images {
    position: relative;
    width: 100%;
    padding-bottom: 125%;
    overflow: hidden;
    border-radius: 2px;
    background: #f5f5f5;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-image.secondary {
    opacity: 0;
}

.product-card:hover .product-image.secondary {
    opacity: 1;
}

.product-info {
    padding: var(--spacing-sm) 0;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-price {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ============================================
   9. PRODUCT DETAIL PAGE
   ============================================ */
.product-detail-page {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto 2rem;
    padding: 0 2rem;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--text-color); opacity: 1; }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text-color); }

/* Prev / Next */
.prev-next {
    max-width: var(--max-width);
    margin: 0 auto 2rem;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    font-size: 0.85rem;
}
.prev-next a { color: var(--text-light); }
.prev-next a:hover { color: var(--text-color); opacity: 1; }

/* Layout a due colonne */
.product-detail-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Galleria */
.gallery-main {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    background: #f0ece6;
}
.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.gallery-thumbs img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    opacity: 0.7;
}
.gallery-thumbs img.active,
.gallery-thumbs img:hover {
    border-color: var(--text-color);
    opacity: 1;
}

/* Descrizione prodotto (sotto le due colonne) */
.product-description {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-color);
}

/* Pannello destro */
.product-info-panel h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.product-price-tag {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Quantità */
.qty-label {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    color: var(--text-color);
}
.qty-label span.required { color: #c00; }
.qty-input {
    width: 60px;
    border: 1px solid #ccc;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.2rem;
    background: white;
}

/* Esaurito */
.out-of-stock-btn {
    width: 100%;
    background: #e8e3dc;
    color: #a09990;
    border: none;
    padding: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    cursor: default;
    margin-bottom: 1.5rem;
    transition: none;
}
.out-of-stock-btn:hover { background: #e8e3dc; }
.add-to-cart-btn.added {
    background: #4a7a5a;
}

/* Accordion */
.accordion {
    border-top: 1px solid #ddd;
}
.accordion-item {
    border-bottom: 1px solid #ddd;
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    user-select: none;
}
.accordion-toggle {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1;
    color: var(--text-light);
    transition: transform 0.25s;
}
.accordion-item.open .accordion-toggle {
    transform: rotate(45deg);
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.accordion-item.open .accordion-body {
    max-height: 300px;
}
.accordion-body-inner {
    padding-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
}
.accordion-body-inner p { margin-bottom: 0.25rem; }

/* Overlay carrello */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.cart-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* Sidebar carrello */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100%;
    background: white;
    z-index: 950;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eee;
}
.cart-header h2 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}
.cart-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 0;
}
.cart-close:hover { color: var(--text-color); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}
.cart-item img {
    width: 64px;
    height: 80px;
    object-fit: cover;
}
.cart-item-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}
.cart-item-price {
    font-size: 0.85rem;
    color: var(--text-light);
}
.cart-item-qty {
    width: 50px;
    border: 1px solid #ccc;
    padding: 0.25rem 0.4rem;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.4rem;
}
.cart-item-remove {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.cart-item-remove:hover { color: #c00; }

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}
.cart-promo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    cursor: pointer;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}
.cart-taxes-note {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}
.checkout-btn {
    width: 100%;
    background: #5a4a3a;
    color: white;
    border: none;
    padding: 0.9rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: background 0.2s;
}
.checkout-btn:hover { background: #3e3228; }
.view-cart-btn {
    width: 100%;
    background: white;
    color: var(--text-color);
    border: 1px solid #ccc;
    padding: 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: background 0.2s;
}
.view-cart-btn:hover { background: var(--hover-bg); }
.secure-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ===================================
   10. COMMISSIONS PAGE
   =================================== */
.commissions-hero {
    background: url('../images/img-commissions.jpg') center / cover no-repeat;
    padding: var(--spacing-xl) 0;
    text-align: center;
    width: 100%;
}

.commissions-hero h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
}

.commissions-content {
    padding: var(--spacing-xl) 0;
}

.commissions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--spacing-xl);
    align-items: start;
}

.commission-info {
    padding-right: var(--spacing-md);
}

.commission-info h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.commission-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.commission-example {
    padding: var(--spacing-xl) 0 0;
}

.commission-example figure {
    margin: 0 auto;
    max-width: 460px;
}

.commission-example img {
    display: block;
    width: 100%;
    height: auto;
}

.commission-example figcaption {
    margin-top: var(--spacing-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
}

.commission-form-container {
    background: #fafafa;
    padding: var(--spacing-lg);
    border-radius: 2px;
}

.commission-form {
    display: grid;
    gap: var(--spacing-md);
    min-width: 0;
}

.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.file-upload-group {
    display: flex;
    flex-direction: column;
}

.file-upload-btn {
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file-upload-btn:hover {
    border-color: var(--primary-color);
}

.file-upload-input {
    display: none;
}

/* ===================================
   11. PRINTS PAGE
   =================================== */
.prints-hero {
    background-image: url('../images/prints-background.jpeg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.prints-hero h1 {
    color: #ffffff;
}

.prints-content {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.prints-notice {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: #fff9e6;
    border-radius: 2px;
    color: #856404;
}

/* Prints: animated hero, intro and centred grid */
.prints-hero {
    animation: printsHeroDrift 24s ease-in-out infinite alternate;
}

@keyframes printsHeroDrift {
    from { background-position: 40% center; }
    to { background-position: 60% center; }
}

.prints-hero h1,
.prints-content .section-header,
.prints-intro {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.prints-content .section-header { animation-delay: 0.2s; }
.prints-intro { animation-delay: 0.4s; }

.prints-intro {
    max-width: 560px;
    margin: 0 auto;
    color: #666;
    line-height: 1.7;
}

.prints-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.prints-grid .product-card {
    width: 320px;
}

/* Animate the inner link so the card's own hover lift still works */
.prints-grid .product-card > a {
    display: block;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.prints-grid .product-card:nth-child(1) > a { animation-delay: 0.6s; }
.prints-grid .product-card:nth-child(2) > a { animation-delay: 0.8s; }
.prints-grid .product-card:nth-child(3) > a { animation-delay: 1s; }
.prints-grid .product-card:nth-child(4) > a { animation-delay: 1.2s; }

.prints-grid .product-images {
    transition: box-shadow 0.5s ease;
}

.prints-grid .product-card:hover .product-images {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.prints-grid .product-image {
    transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prints-grid .product-card:hover .product-image {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .prints-grid .product-card {
        width: calc(50% - var(--spacing-md) / 2);
    }
}

@media (max-width: 480px) {
    .prints-grid .product-card {
        width: 100%;
        max-width: 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prints-hero,
    .prints-hero h1,
    .prints-content .section-header,
    .prints-intro,
    .prints-grid .product-card > a {
        animation: none;
        opacity: 1;
    }
}

/* ===================================
   12. ABOUT PAGE
   =================================== */
.about-hero {
    background-image: url('../images/bio-background.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.about-hero h1 {
    color: #ffffff;
}

.about-content {
    padding: var(--spacing-xl) 0;
}

.bio-section {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.bio-image {
    width: 100%;
    border-radius: 2px;
    overflow: hidden;
}

.bio-image img {
    width: 100%;
    height: auto;
}

.bio-text {
    padding-left: var(--spacing-md);
}

.bio-text h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

.bio-text p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: var(--spacing-md);
}

.bio-label {
    display: inline-block;
    background-color: #f5f0e8;
    padding: 1rem 4rem;
}

.bio-label em {
    display: inline-block;
    font-style: normal;
    color: #151414;
}

/* ===================================
   13. CONTACT FORM SECTION
   =================================== */
.contact-section {
    background-color: var(--secondary-color);
    padding: var(--spacing-xl) 0;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    background-color: #000000;
    color: #ffffff;
    padding: 3rem 2rem;
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.contact-info h2 {
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 2.5rem;
}

.contact-info p,
.contact-info a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-form {
    display: grid;
    gap: var(--spacing-md);
    background-color: var(--secondary-color);
    padding: 2rem 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.3s ease;
    justify-self: center;
}

.submit-btn:hover {
    background: #333;
}

.form-success {
    display: none;
    text-align: center;
    padding: var(--spacing-md);
    background: #e8f5e9;
    border-radius: 2px;
    color: #2e7d32;
}

.form-success.show {
    display: block;
}

/* ===================================
   14. FOOTER
   =================================== */
.site-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: auto; /* garantisce che il footer resti in fondo */
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-section h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ===================================
   15. RESPONSIVE / MEDIA QUERIES
   =================================== */

/* ── Tablet ── */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ── Mobile ── */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* Bottone hamburger */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Navigazione mobile: pannello a scomparsa da sinistra */
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--secondary-color);
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        align-items: flex-start;
    }

    .main-nav a {
        font-size: 1rem;
    }

    .login-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .lang-switcher {
        margin-left: 0;
    }

    /* Hero home */
    .hero-container {
        aspect-ratio: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .hero-text-box {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 85%;
        margin: 2rem auto 1.5rem;
        z-index: 15;
    }

    .hero-collage {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .img-wave { width: 70%; top: 0; left: 0; }
    .img-man { width: 40%; left: 5%; bottom: 0; }
    .img-flower { width: 55%; right: 0; bottom: 0; }

    /* Griglie a colonna singola */
    .commissions-grid,
    .bio-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .commissions-grid {
        gap: var(--spacing-md);
    }

    .commission-info {
        padding-right: 0;
    }

    .commissions-hero {
        padding: 4rem 1rem;
    }

    .commissions-hero h1 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: var(--spacing-md);
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .articles-section .section-header {
        padding-top: 8vh;
        padding-bottom: 5vh;
    }

    .bio-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .bio-text {
        padding-left: 0;
    }

    .bio-label {
        padding: 0.75rem 1.5rem;
    }

    /* Footer a colonna singola */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Product detail */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cart-sidebar {
        width: 100%;
    }

    .product-description {
        padding: 1.5rem 1rem 2rem;
    }

    .breadcrumb {
        padding: 0 1rem;
        flex-wrap: wrap;
    }

    .prev-next {
        padding: 0 1rem;
    }

    /* Contatti */
    .contact-info h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Sezioni */
    .section {
        padding: var(--spacing-md) 0;
    }
}

/* ── Small phones ── */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }

    .product-detail-grid {
        padding: 0 1rem 2rem;
        gap: 1.5rem;
    }

    .commission-form-container {
        padding: var(--spacing-md);
    }
}
