:root {
    --sea-deep: #053355;
    --sea-mid: #0a5d84;
    --sand: #dbc9a4;
    --map-road: #f6f2e8;
    --map-block: #d8d0be;
    --ink: #10222f;
    --card: #f8fbfd;
    --accent: #0e7599;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(160deg, #ecf5f8 0%, #dbe7ee 100%);
}

.hero-map {
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(8, 31, 46, 0.35), rgba(8, 31, 46, 0.55)),
        url("/assets/foto-adjunta.jpg"),
        radial-gradient(circle at 83% 35%, rgba(255, 255, 255, 0.2) 0 12%, transparent 12% 100%),
        linear-gradient(110deg, var(--map-block) 0 60%, var(--sea-mid) 60% 100%);
    background-size: cover, cover, auto, auto;
    background-position: center, center, center, center;
}

.hero-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        linear-gradient(140deg, transparent 0 65%, rgba(7, 63, 96, 0.7) 65% 100%);
    background-size: 28px 28px, 28px 28px, cover;
    opacity: 0.45;
}

.hero-map::after {
    content: "";
    position: absolute;
    left: -10%;
    top: -20px;
    width: 68%;
    height: 120%;
    background: repeating-linear-gradient(
        25deg,
        rgba(246, 242, 232, 0.8),
        rgba(246, 242, 232, 0.8) 8px,
        rgba(214, 202, 173, 0.7) 8px,
        rgba(214, 202, 173, 0.7) 14px
    );
    clip-path: polygon(0 0, 97% 0, 80% 100%, 0 100%);
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(16, 34, 47, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.25rem;
    color: #fff;
}

.tag {
    margin: 0;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

h1 {
    margin: 0.2rem 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.address {
    margin-top: 0;
    margin-bottom: 1rem;
}

.contact {
    margin-top: -0.4rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.contact a {
    color: #ffffff;
    text-decoration: underline;
}

.map-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.badge {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    backdrop-filter: blur(2px);
}

.badge.pin {
    background: rgba(185, 30, 30, 0.85);
}

.badge.sea {
    background: rgba(2, 69, 98, 0.85);
}

.layout {
    max-width: 1100px;
    margin: -2.4rem auto 2rem;
    padding: 0 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--card);
    border: 1px solid rgba(16, 34, 47, 0.09);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(6, 45, 66, 0.08);
}

h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

ul {
    margin: 0;
    padding-left: 1.1rem;
}

li {
    margin-bottom: 0.5rem;
}

.form-grid,
.form-inline {
    display: grid;
    gap: 0.65rem;
}

.form-inline {
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-top: 0.9rem;
}

label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.92rem;
    font-weight: 600;
}

input,
select,
button {
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(16, 34, 47, 0.18);
    font-size: 0.95rem;
}

button {
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
}

button:hover {
    filter: brightness(1.05);
}

.status {
    min-height: 1.2rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.cargos {
    background: #e9f4f8;
    border-radius: 12px;
    padding: 0.7rem;
    margin-bottom: 0.8rem;
    font-size: 0.93rem;
}

.results {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.5rem;
}

.result-card {
    border: 1px solid rgba(10, 93, 132, 0.25);
    background: #f0f8fc;
    border-radius: 10px;
    padding: 0.7rem;
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    .form-inline {
        grid-template-columns: 1fr;
    }
}
