/* === AuraBlog Theme | Risij.uk Blog === */
/* Language: Italian */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Montserrat:wght@400;500;700&display=swap');

/* --- CSS Variables --- */
:root {
    --background-color: #fdfaf6; /* Cream */
    --text-color: #3d4044; /* Dark Charcoal */
    --primary-accent-color: #c5a47e; /* Soft Gold */
    --secondary-accent-color: #7a7a7a; /* Mid Grey */
    --header-footer-bg: #ffffff;
    --card-border-color: #e9e4de;
    --link-hover-color: #a78760; /* Darker Gold */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    --container-width: 1140px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --border-radius: 6px;
}

/* --- Global & Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: none;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 28px;
}

ul li::before {
    content: '•';
    color: var(--primary-accent-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* --- Header --- */
.site-header {
    background-color: var(--header-footer-bg);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--card-border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #222529;
}
.site-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
.site-title a:hover {
    color: var(--primary-accent-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu li::before {
    content: ''; /* Remove bullets from nav */
}
.nav-menu li {
    padding-left: 0;
}

.nav-menu a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 8px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-accent-color);
    transition: width 0.4s ease;
}

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


/* --- Main Layout --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 2.5fr 1fr;
    }
}

/* --- Hero Section (Homepage) --- */
.hero {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    background-color: #fff;
    border: 1px solid var(--card-border-color);
}

.hero h1 {
    color: var(--text-color);
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--secondary-accent-color);
}


/* --- Articles Grid (Homepage) --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 600px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background-color: #fff;
    border: 1px solid var(--card-border-color);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}
.card-content h3 a {
    color: var(--text-color);
}

.card-content h3 a:hover {
    color: var(--primary-accent-color);
    text-decoration: none;
}

.card-content p {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--secondary-accent-color);
}

.read-more-btn {
    display: inline-block;
    border: 1px solid var(--primary-accent-color);
    color: var(--primary-accent-color);
    padding: 0.7rem 1.5rem;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-weight: 500;
    background-color: transparent;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.read-more-btn:hover {
    background-color: var(--primary-accent-color);
    color: #fff;
}

/* --- Sidebar --- */
.sidebar .widget {
    background-color: #fff;
    padding: 1.75rem;
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    margin-bottom: 2.5rem;
}

.widget-title {
    font-size: 1.4rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--primary-accent-color);
    margin-bottom: 1.5rem;
}

.widget.widget-promo {
    background-color: #222529;
    color: #fff;
    text-align: center;
}
.widget.widget-promo .widget-title {
    color: #fff;
    border-bottom-color: var(--primary-accent-color);
}
.widget.widget-promo a {
    color: var(--primary-accent-color);
    font-weight: 700;
}
.widget.widget-promo a:hover {
    color: #fff;
}


/* --- Single Article & Sub-Pages --- */
.article-content, .subpage-content {
    background-color: #fff;
    padding: 3rem;
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--card-border-color);
    padding-bottom: 2rem;
}
.article-header h1 {
    font-size: 3rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--secondary-accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-section {
    background-color: var(--background-color);
    text-align: center;
    padding: 3rem;
    margin: 2.5rem 0;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border-color);
}
.cta-section h2 {
    margin-top: 0;
}

/* --- Contact Form --- */
.contact-form {
    margin-top: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent-color);
    box-shadow: 0 0 0 4px rgba(197, 164, 126, 0.15);
}

.contact-form button {
    display: inline-block;
    background-color: var(--primary-accent-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-form button:hover {
    background-color: var(--link-hover-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}


/* --- Footer --- */
.site-footer {
    background-color: #fff;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--card-border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links li::before, .footer-links li {
    content: '';
    padding-left: 0;
}
.footer-links a {
    color: var(--secondary-accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--primary-accent-color);
}


.copyright {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0;
}

/* --- Mobile Menu --- */
@media (max-width: 767px) {
    body {
        font-size: 16px;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .article-header h1 { font-size: 2.5rem; }
    
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem 1.2rem;
        width: 100%;
    }
    .main-layout {
        padding: 2rem 0;
    }
    .article-content, .subpage-content {
        padding: 1.5rem;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
