@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@500;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.7;
}

/* ---------- HEADER ---------- */

header {
    background: linear-gradient(135deg, #0f4c75, #3282b8);
    color: white;
    padding: 20px 20px;
    text-align: center;
    animation: fadeDown 1s ease-out;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    margin-bottom: 15px;
}

header p {
    font-size: 40px;
    opacity: 0.9;
}

/* ---------- LAYOUT ---------- */

.container {
    max-width: 1000px;
    margin: auto;
    padding: 70px 20px;
}

.containerimage {
    margin: auto;
    height: auto;
    padding: 20px 20px;
}

.section {
    margin-bottom: 70px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-family: 'Playfair Display', serif;
    color: #0f4c75;
    font-size: 30px;
    margin-bottom: 20px;
}

/* ---------- SERVICES ---------- */

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.service-box h3 {
    margin-top: 0;
    color: #0f4c75;
}

/* ---------- BUTTON ---------- */

.button {
    display: block;
    padding: 40px 140px;
    background-color: #0f4c75;
    color: white;
    text-decoration: none;
    border-radius: 0px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    width: fit-content;
    margin: 0 auto;
}

.button:hover {
    background-color: #0b3a5c;
    transform: scale(1.04);
}

/* ---------- FORM ---------- */

form {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

form input,
form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #3282b8;
}

form button {
    width: 100%;
    padding: 15px;
    background-color: #3282b8;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
}

form button:hover {
    background-color: #0f4c75;
}

.note {
    font-size: 13px;
    color: #777;
    margin-top: 12px;
}

/* ---------- FOOTER ---------- */

footer {
    background-color: #1b262c;
    color: #bbb;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

/* ---------- ANIMAZIONI ---------- */

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}