/* ============================================ */
/* SMARTVIBE.TECH - STILE COMPLETO             */
/* Quiet Luxury - Tecnologia di Lusso           */
/* ============================================ */

/* ============================================ */
/* 1. RESET & BASE                              */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    background-color: #FFFFFF;
    color: #1A1A1A;
    line-height: 1.6;
}

a {
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #C5A880;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================ */
/* 2. CONTAINER                                */
/* ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============================================ */
/* 3. TIPOGRAFIA                               */
/* ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    color: #1A1A1A;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    font-weight: 600;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #3A3A3A;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: #C5A880;
    margin: 16px auto 0;
}

/* ============================================ */
/* 4. HEADER                                   */
/* ============================================ */

.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #E8E8E8;
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1A1A1A;
}

.logo-icon {
    font-size: 1.2rem;
    color: #C5A880;
}

.logo-text {
    letter-spacing: -0.02em;
}

.logo-highlight {
    color: #C5A880;
}

.logo-tag {
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #999;
    letter-spacing: 2px;
    margin-left: 2px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1A1A1A;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    border-bottom-color: #C5A880;
    color: #1A1A1A;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1A1A1A;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================ */
/* 5. HERO                                     */
/* ============================================ */

.hero {
    padding: 80px 0 64px;
    background: #F9F6F0;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C5A880;
    border: 1px solid #C5A880;
    padding: 6px 18px;
    margin-bottom: 24px;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 24px;
}

.hero-description {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    color: #5A5A5A;
    font-weight: 300;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 36px;
    transition: all 0.3s ease;
}

.cta-primary {
    background: #1A1A1A;
    color: #FFFFFF;
    border: none;
}

.cta-primary:hover {
    background: #C5A880;
    color: #FFFFFF;
}

.cta-secondary {
    background: transparent;
    color: #1A1A1A;
    border: 1px solid #1A1A1A;
}

.cta-secondary:hover {
    background: #1A1A1A;
    color: #FFFFFF;
}

/* ============================================ */
/* 6. CATEGORIES                               */
/* ============================================ */

.categories {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.category-card {
    background: #F9F6F0;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-color: #C5A880;
}

.category-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.category-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.85rem;
    color: #6A6A6A;
}

/* ============================================ */
/* 7. ARTICLES                                 */
/* ============================================ */

.latest-articles {
    padding: 80px 0 64px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.article-card {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.article-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #F4F4F4;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.02);
}

.article-category {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFFFFF;
    background: rgba(26, 26, 26, 0.7);
    padding: 4px 14px;
    backdrop-filter: blur(4px);
}

.article-content {
    padding: 24px 28px 28px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-content h3 a {
    color: #1A1A1A;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #C5A880;
}

.article-content p {
    font-size: 0.92rem;
    color: #5A5A5A;
    margin-bottom: 16px;
}

.read-more {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1A1A1A;
    border-bottom: 1px solid #C5A880;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #C5A880;
}

/* ============================================ */
/* 8. NEWSLETTER                               */
/* ============================================ */

.newsletter {
    padding: 80px 0;
    background: #F9F6F0;
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-inner h2 {
    margin-bottom: 12px;
}

.newsletter-inner p {
    color: #5A5A5A;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #D0D0D0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: #C5A880;
}

.newsletter-form button {
    padding: 14px 32px;
    background: #1A1A1A;
    color: #FFFFFF;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #C5A880;
}

.newsletter-disclaimer {
    font-size: 0.7rem;
    color: #999;
    margin-top: 16px;
}

/* ============================================ */
/* 9. FOOTER                                   */
/* ============================================ */

.site-footer {
    padding: 64px 0 32px;
    background: #1A1A1A;
    color: #CCCCCC;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.footer-brand .logo-highlight {
    color: #C5A880;
}

.footer-brand .logo-tag {
    font-size: 0.6rem;
    font-family: 'Inter', sans-serif;
    color: #888;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #999;
    max-width: 320px;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    font-size: 1.2rem;
    color: #888;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #C5A880;
}

.footer-links h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.85rem;
    color: #999;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #C5A880;
}

.footer-bottom {
    border-top: 1px solid #2A2A2A;
    padding-top: 24px;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
}

.footer-disclosure {
    font-size: 0.6rem;
    color: #555;
    max-width: 800px;
    line-height: 1.6;
}

/* ============================================ */
/* 10. PAGE TEMPLATES                          */
/* ============================================ */

.page-hero {
    padding: 64px 0 40px;
    background: #F9F6F0;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #6A6A6A;
    font-weight: 300;
}

.page-content {
    padding: 64px 0 80px;
}

.content-block {
    max-width: 800px;
    margin: 0 auto 48px;
}

.content-block h2 {
    margin-bottom: 16px;
}

.content-block h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    margin-top: 32px;
    color: #C5A880;
}

.content-block p {
    margin-bottom: 16px;
}

.content-block ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-block ul li {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #3A3A3A;
}

/* Values List */
.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 24px 0;
    border-bottom: 1px solid #F0F0F0;
}

.values-list li:last-child {
    border-bottom: none;
}

.values-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-family: 'Cormorant Garamond', serif;
}

.values-list p {
    font-size: 0.95rem;
    color: #6A6A6A;
    margin: 0;
}

/* Stats */
.stats-block {
    background: #F9F6F0;
    padding: 48px 40px;
    border-left: 3px solid #C5A880;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #1A1A1A;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================ */
/* 11. ARTICLE DETAIL PAGE                     */
/* ============================================ */

.article-detail .article-header {
    padding: 48px 0 32px;
    background: #F9F6F0;
}

.article-detail .article-header h1 {
    max-width: 800px;
    margin: 0 auto 16px;
    text-align: center;
}

.article-detail .article-meta-top {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-detail .article-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 0 64px;
}

.article-detail .article-body h2 {
    margin-top: 48px;
    margin-bottom: 16px;
}

.article-detail .article-body h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #C5A880;
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-detail .article-body p {
    margin-bottom: 16px;
}

.article-detail .article-body ul,
.article-detail .article-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-detail .article-body li {
    margin-bottom: 6px;
}

/* Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 32px;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    border: 1px solid #E8E8E8;
    text-align: left;
}

.comparison-table th {
    background: #F9F6F0;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-table tr:nth-child(even) {
    background: #FCFCFA;
}

/* CTA Box */
.cta-box {
    background: #F9F6F0;
    border-left: 3px solid #C5A880;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
}

.cta-box-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.cta-box-desc {
    font-size: 0.9rem;
    color: #4A4A4A;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
}

.cta-button {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.7rem 1.8rem;
    border: 1px solid #1A1A1A;
    transition: all 0.3s ease;
    color: #1A1A1A;
    background: transparent;
}

.cta-button:hover {
    background: #1A1A1A;
    color: #FFFFFF;
}

.cta-button.gold {
    border-color: #C5A880;
}

.cta-button.gold:hover {
    background: #C5A880;
    color: #FFFFFF;
}

.cta-disclaimer {
    font-size: 0.6rem;
    color: #999;
    margin-top: 1rem;
    font-style: italic;
}

/* ============================================ */
/* 12. RESPONSIVE                              */
/* ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        padding: 24px;
        border-bottom: 1px solid #E8E8E8;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    }
    
    .main-nav.open {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-nav a {
        display: block;
        padding: 8px 0;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 48px 0 40px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .cta-box {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-button {
        text-align: center;
    }
    
    .comparison-table {
        font-size: 0.75rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .category-card {
        padding: 20px 16px;
    }
    
    .category-icon {
        font-size: 1.8rem;
    }
    
    .category-card h3 {
        font-size: 0.7rem;
    }
    
    .category-card p {
        font-size: 0.7rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* ============================================ */
/* 13. UTILITIES                               */
/* ============================================ */

.text-center {
    text-align: center;
}

.mt-16 {
    margin-top: 16px;
}

.mt-32 {
    margin-top: 32px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-32 {
    margin-bottom: 32px;
}

.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}