/*
Theme Name: AGstudio
Theme URI: https://www.agstudio.digital
Author: AG Studio Development Alex Gentili +39 349 1099145
Author URI: https://www.agstudio.digital
Description: Tema WordPress minimale e professionale, ottimizzato per l'uso con Elementor Page Builder. Fornisce una base pulita e flessibile per creare siti web personalizzati.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agstudio
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, elementor-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Reset di base e normalizzazione */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container principale */
.site-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 0 0 auto;
}

.site-title {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
}

.site-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #0073aa;
}

.site-description {
    margin: 5px 0 0;
    font-size: 1.4rem;
    color: #666666;
}

/* Navigation Menu */
.main-navigation {
    flex: 1 1 auto;
    text-align: right;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #333333;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* Sottomenu dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    z-index: 999;
}

.main-navigation ul ul li {
    border-bottom: 1px solid #e5e5e5;
}

.main-navigation ul ul li:last-child {
    border-bottom: none;
}

.main-navigation ul ul a {
    padding: 10px 20px;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

/* Menu mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333333;
    margin: 5px 0;
    transition: 0.3s;
}

/* Content Area */
.site-content {
    padding: 60px 0;
    min-height: 500px;
}

.content-area {
    width: 100%;
}

/* Post e Pagine */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 3.6rem;
    font-weight: 700;
    color: #333333;
    margin: 0 0 15px;
    line-height: 1.2;
}

.entry-meta {
    font-size: 1.4rem;
    color: #666666;
    margin-bottom: 20px;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-content {
    font-size: 1.6rem;
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 30px 0 15px;
    line-height: 1.3;
}

.entry-content h1 { font-size: 3.2rem; }
.entry-content h2 { font-size: 2.8rem; }
.entry-content h3 { font-size: 2.4rem; }
.entry-content h4 { font-size: 2.0rem; }
.entry-content h5 { font-size: 1.8rem; }
.entry-content h6 { font-size: 1.6rem; }

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px 30px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content a {
    color: #0073aa;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #005177;
}

/* Footer */
.site-footer {
    background-color: #f7f7f7;
    padding: 40px 0 20px;
    border-top: 1px solid #e5e5e5;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333333;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #0073aa;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: 1.4rem;
    color: #666666;
}

/* Pagina 404 */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-404 .page-title {
    font-size: 8rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
}

.error-404 .page-content {
    font-size: 1.8rem;
    color: #666666;
}

/* WordPress Core Classes */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 1.4rem;
    color: #666666;
    margin-top: 5px;
}

.sticky {
    position: relative;
}

.screen-reader-text {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Elementor Compatibility */
.elementor-page .site-content {
    padding: 0;
}

.elementor-page .content-area {
    max-width: 100%;
}

.elementor-page .entry-content {
    margin: 0;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation a {
        padding: 15px 20px;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        background-color: #f7f7f7;
    }
    
    .entry-title {
        font-size: 2.8rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 55%;
    }
    
    .site-container {
        padding: 0 15px;
    }
    
    .entry-title {
        font-size: 2.4rem;
    }
}