
/* ============================= */
/* RESET E LAYOUT BASE */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

html {
    overflow-y: scroll; /* forza sempre la scrollbar verticale */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ============================= */
/* HEADER E NAV */
/* ============================= */
header {
    background-color: #2f3e46;
    color: #fff;
    text-align: center;
    padding: 20px;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

header p {
    font-size: 1rem;
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #fff;
    color: #2f3e46;
}

/* ============================= */
/* HERO (HOME) */
/* ============================= */
.hero {
    background: url('../imgs/head_banner.png') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 0;
}

.hero h2, .hero p, .hero .btn {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero .btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.hero .btn:hover {
    background-color: #0056b3;
}

/* ============================= */
/* MAIN E FOOTER */
/* ============================= */
main {
    flex: 1;
    padding: 30px 20px;
}

footer {
    background-color: #2f3e46;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* ============================= */
/* INFO */
/* ============================= */
.info h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2f3e46;
}

.info-form {
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.info-form label {
    font-weight: bold;
    color: #2f3e46;
}

.info-form input,
.info-form textarea {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
}

.info-form textarea {
    resize: vertical;
    min-height: 120px;
}

.info-form button {
    background-color: #007bff;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.info-form button:hover {
    background-color: #0056b3;
}

/* ============================= */
/* CONTATTI */
/* ============================= */
.contatti h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2f3e46;
}

.contatti-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.contatti-dati {
    flex: 1;
    font-size: 1rem;
    color: #2f3e46;
}

.contatti-dati p {
    margin-bottom: 12px;
}

.contatti-mappa {
    flex: 1;
}

/* ============================= */
/* PROGETTI */
/* ============================= */
.progetti h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2f3e46;
}

.progetti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.progetto {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.progetto .icon {
    font-size: 28px;
    flex-shrink: 0;
    color: #007bff;
}

.progetto .text h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2f3e46;
}

.progetto .text p {
    font-size: 0.95rem;
    font-weight: normal;
    color: #555;
    line-height: 1.4;
}

/* ============================= */
/* SERVIZI */
/* ============================= */
.servizi h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2f3e46;
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.servizio {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.servizio .icon {
    font-size: 28px;
    flex-shrink: 0;
    color: #007bff;
}

.servizio .text h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2f3e46;
}

.servizio .text p {
    font-size: 0.95rem;
    font-weight: normal;
    color: #555;
    line-height: 1.4;
}

/* ============================= */
/* SERVIZI IN HOME (INDEX) */
/* ============================= */
.servizi-home {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.servizi-home li {
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 1rem;
    color: #2f3e46;
    transition: transform 0.2s, box-shadow 0.2s;
}

.servizi-home li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
