/* CoralMC Inspired Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Open+Sans:wght@400;600&display=swap');

:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-secondary: #252525;
    --accent: #ff6b6b;
    /* Coral */
    --accent-hover: #ff5252;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --border: #333333;
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg-dark);
    background-image: url('../images/sfondo-frattale-astratto-blu-illustrazione-di-rendering-3d_194118-3766.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-main);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/masthead-bg.jpg');
    /* Fallback or use existing */
    background-size: cover;
    background-position: center;
    padding: 5rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--accent);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.card img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--accent);
    font-size: 1.5rem;
}

/* Sidebar / Nav (for paola21.htm) */
.sidebar {
    background-color: var(--bg-secondary);
    padding: 2rem;
    height: 100%;
    min-height: 100vh;
    border-right: 1px solid var(--border);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav a {
    display: block;
    padding: 1rem;
    background-color: var(--bg-card);
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background-color: var(--bg-dark);
    border-left-color: var(--accent);
    color: var(--accent);
}

.sidebar-title {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

/* Specific overrides for Paola's content */
.profile-img {
    border: 4px solid var(--accent);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto 2rem;
    display: block;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

/* Utility Classes to replace inline styles */
.sidebar-fixed {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.main-content-padded {
    margin-left: 250px;
    padding: 2rem;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mx-1 {
    margin: 0 0.5rem;
}

.social-icon-link {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.social-icon-link:hover {
    color: var(--accent);
}

.welcome-text {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.author-photo {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-icon-large {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.card-img-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.section-title {
    border-bottom: 4px solid var(--accent);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.footer-content {
    margin-left: 250px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar-fixed {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main-content-padded {
        margin-left: 0;
    }

    .footer-content {
        margin-left: 0;
    }
}