/*
Theme Name:  MyCustomParent
Theme URI:   https://example.com/mycustomparent
Author:      Il Tuo Nome
Author URI:  https://example.com
Description: Tema padre personalizzato. Fornisce la struttura e gli stili di base per i temi figli.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mycustomparent
Tags:        custom, parent-theme
*/

/* ==========================================================================
   TABLE OF CONTENTS
   1. Reset & Base
   2. Typography
   3. Layout
   4. Header
   5. Navigation
   6. Content
   7. Sidebar
   8. Footer
   9. Widgets
   10. Media Queries
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #005177;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: #1a1a1a;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.2em;
}

ul, ol {
    margin: 0 0 1.2em 1.5em;
}

blockquote {
    border-left: 4px solid #0073aa;
    padding: 0.5em 1em;
    margin: 1.5em 0;
    color: #555;
    font-style: italic;
}

code, pre {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background: #f4f4f4;
    border-radius: 3px;
}

code {
    padding: 0.1em 0.4em;
}

pre {
    padding: 1em;
    overflow-x: auto;
    margin-bottom: 1.2em;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    display: flex;
    gap: 40px;
    padding: 40px 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 20px 0;
    border-bottom: 4px solid #0073aa;
}

.site-header .site-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-title a:hover {
    color: #0073aa;
}

.site-description {
    font-size: 0.875rem;
    color: #aaaaaa;
    margin: 0;
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.main-navigation {
    background-color: #0073aa;
}

.main-navigation .site-wrapper {
    padding-top: 0;
    padding-bottom: 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-navigation ul li a {
    display: block;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    background-color: #005177;
}

/* Dropdown */
.main-navigation ul li ul {
    display: none;
    position: absolute;
    background: #005177;
    min-width: 200px;
    z-index: 999;
    flex-direction: column;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

/* --------------------------------------------------------------------------
   6. Content
   -------------------------------------------------------------------------- */
.entry-title {
    font-size: 2rem;
    margin-bottom: 0.5em;
}

.entry-title a {
    color: #1a1a1a;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1.5em;
}

.entry-meta a {
    color: #0073aa;
}

.entry-content {
    margin-bottom: 2em;
}

.entry-footer {
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid #e0e0e0;
    padding-top: 1em;
    margin-top: 1em;
}

/* Post separatore */
article.post,
article.page {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 2.5em;
    margin-bottom: 2.5em;
}

article.post:last-of-type {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   7. Sidebar
   -------------------------------------------------------------------------- */
.sidebar .widget {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar .widget-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0073aa;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar ul li {
    padding: 5px 0;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: #1a1a1a;
    color: #aaaaaa;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.site-info {
    text-align: center;
    font-size: 0.875rem;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.site-info a {
    color: #0073aa;
}

/* --------------------------------------------------------------------------
   9. Buttons
   -------------------------------------------------------------------------- */
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    display: inline-block;
    padding: 10px 22px;
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: #005177;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   10. Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .content-area {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .main-navigation ul {
        flex-direction: column;
    }
}
