@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Cormorant+SC:wght@400;500;600&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', system-ui, sans-serif;
    background: #fefcf7;
    color: #3d2a1f;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    transition: all 0.5s ease;
    padding: 1rem 0;
}

header.scrolled {
    background: #fefcf7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    background: white;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-text h2 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
}

.logo-text p {
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: #b8962e;
}

.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none;
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    color: inherit;
    position: relative;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #b8962e;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn {
    padding: 0.6rem 1.25rem;
    border: 1px solid #b8962e;
    color: #b8962e;
    text-decoration: none;
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    transition: all 0.3s;
    cursor: pointer;
}

.cta-btn:hover {
    background: #b8962e;
    color: #3d2a1f;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero.webp') center/cover;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(28, 16, 8, 0.88) 0%, rgba(28, 16, 8, 0.55) 55%, rgba(28, 16, 8, 0.15) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 40rem;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(184, 150, 46, 0.6);
    color: rgba(225, 229, 214, 0.85);
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.7s ease forwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.7s ease 100ms forwards;
    opacity: 0;
}

.hero h1 em {
    color: rgba(225, 229, 214, 0.85);
    font-style: italic;
}

.hero p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.82);
    animation: fadeUp 0.7s ease 200ms forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeUp 0.7s ease 300ms forwards;
    opacity: 0;
}

.btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-family: 'Cormorant SC', Georgia, serif;
}

.btn-primary {
    background: #b8962e;
    color: #3d2a1f;
}

.btn-primary:hover {
    background: #a68628;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SEZIONI ===== */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: #b8962e;
}

.section-label {
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #b8962e;
    margin-bottom: 0.75rem;
    display: block;
}

.section-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #8b7355;
    max-width: 40rem;
    margin-bottom: 2rem;
}

/* ===== PRODOTTI ===== */
.prodotti {
    background: #fefcf7;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: #f8f6f3;
    border: 1px solid #e0d9d0;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.7s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
}

.product-label {
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #b8962e;
    margin-bottom: 0.5rem;
    display: block;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #3d2a1f;
}

.product-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #8b7355;
}

/* ===== CHI SIAMO ===== */
.chi-siamo {
    background: #f0ede8;
}

.chi-siamo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .chi-siamo-content {
        grid-template-columns: 1fr;
    }
}

.chi-siamo-image {
    position: relative;
}

.chi-siamo-image img {
    width: 100%;
    height: auto;
    display: block;
}

.chi-siamo-image::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 100%;
    height: 100%;
    border: 2px solid #b8962e;
    z-index: -1;
}

.chi-siamo-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.chi-siamo-text h2 em {
    font-style: italic;
}

.chi-siamo-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #6b5a4a;
    margin-bottom: 1.25rem;
}

.badge-artisan {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #b8962e;
    color: #b8962e;
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    padding: 0.35rem 0.9rem;
    margin-top: 1rem;
}

/* ===== VALORI ===== */
.valori {
    background: #4a5240;
    color: white;
}

.valori .section-label {
    color: #b8962e;
}

.valori .section-title {
    color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.value-icon {
    width: 50px;
    height: 50px;
    background: rgba(184, 150, 46, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8962e;
    font-size: 1.5rem;
}

.value-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

.value-item p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #c4d4b8;
}

/* ===== CTA ===== */
.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .cta {
        flex-direction: row;
    }
}

.cta-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-text h2 em {
    font-style: italic;
}

.cta-text p {
    font-size: 1rem;
    color: #8b7355;
    max-width: 30rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-cta {
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-family: 'Cormorant SC', Georgia, serif;
}

.btn-cta-primary {
    background: #4a5240;
    color: white;
}

.btn-cta-primary:hover {
    background: #3d4535;
}

.btn-cta-secondary {
    background: transparent;
    border: 1px solid #b8962e;
    color: #b8962e;
}

.btn-cta-secondary:hover {
    background: #b8962e;
    color: #3d2a1f;
}

/* ===== FOOTER ===== */
footer {
    background: #382d24;
    color: white;
    padding: 3.5rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    color: #b8962e;
    font-family: 'Cormorant SC', Georgia, serif;
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #c4b5a0;
}

.footer-section a {
    color: #d4c5b0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.footer-logo h3 {
    font-size: 1rem;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #4a3f36;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #8b7d72;
}
