/* RESET E VARIABILI */
:root {
    --primary: #7f5539;      /* Terracotta scuro */
    --secondary: #b08968;    /* Terracotta chiaro */
    --accent: #ede0d4;       /* Beige chiarissimo */
    --bg-white: #ffffff;
    --bg-light: #faf9f6;     /* Off-white */
    --text-dark: #333333;
    --text-light: #666666;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* STRUTTURA GENERALE */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.bg-alt {
    background-color: var(--accent);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.text-center { text-align: center; }

/* NAVIGAZIONE */
.navbar {
    background: var(--bg-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.btn-nav {
    padding: 10px 20px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary) !important;
    transition: all 0.3s !important;
    text-decoration: none;
}

.btn-nav:hover {
    background-color: var(--primary);
    color: white !important;
}

/*  SECTION */
.hero {
    display: flex;
    background: var(--accent); /* linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('https://images.unsplash.com/photo-1499728603963-bc0922d27b1d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;

}

.hero-content h1 {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    
}

.hero-content p {
    margin-bottom: 40px;
    color: var(--text-dark);
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-cta:hover {
    background-color: var(--secondary);
}

/* CHI SONO (Split Layout) */
.split-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}

.image-box img {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.text-box {
    flex: 1;
}

.text-box p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* SERVIZI (Grid Cards) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* CONTATTI (Form) */
.contact-container {
    max-width: 600px;
}

.subtext {
    margin-bottom: 40px;
    color: var(--text-light);
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: var(--secondary);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* FOOTER */
footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 40px 0;
}

footer .small {
    opacity: 0.7;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    
    
    
    
    .hero-content h1 { font-size: 2.5rem; }
    
    .split-layout {
        flex-direction: column;
        text-align: center;
    }
    
    
    .nav-container {
        flex-direction: column;
        gap: 25px;
    }

    .logo {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        justify-content: space-around; /* Li spazia equamente */
        align-items: center;    /* Li centra verticalmente */
        width: 100%;
        padding: 0;
    }

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    
}

.nav-links a:hover {
    color: inherit !important;
}

.btn-nav {
    padding: 10px 20px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary) !important;
    transition: all 0.3s !important;
}

.btn-nav:hover {
    background-color: inherit !important;
    color: inherit !important;
}


}