/* -----------------------------------------------------
   RESET + BASE
----------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    color: #222;
    line-height: 1.6;
}

/* -----------------------------------------------------
   ROOT COLORS
----------------------------------------------------- */

:root {
    --green: #2b7a46;
    --green-dark: #1f5b34;
    --light: #f7f7f7;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* -----------------------------------------------------
   HEADER
----------------------------------------------------- */

.site-header {
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo a {
    text-decoration: none;
    font-size: 26px;
    font-weight: bold;
    color: var(--green-dark);
}

.logo span {
    color: var(--green);
}

/* DESKTOP MENU */
.main-menu {
    display: flex;
    gap: 20px;
}

.main-menu a {
    text-decoration: none;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    transition: 0.2s;
}

.main-menu a:hover {
    color: var(--green);
}

/* MOBILE TOGGLE */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* -----------------------------------------------------
   MOBILE MENU
----------------------------------------------------- */

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px;
}

.mobile-menu a {
    padding: 10px 0;
    text-decoration: none;
    color: #222;
    font-size: 18px;
}

.mobile-menu.active {
    display: flex;
}

/* -----------------------------------------------------
   HERO / TITOLI
----------------------------------------------------- */

.hero {
    padding: 80px 20px;
    text-align: center;
    background: url('/assets/img/hero.jpg') center/cover no-repeat;
    color: var(--white);
}

.hero h1 {
    font-size: 48px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 20px;
    margin-top: 15px;
}

/* -----------------------------------------------------
   CONTENUTI & PAGINE
----------------------------------------------------- */

h1 {
    font-size: 32px;
    margin: 30px 0 20px;
    text-align: center;
    color: var(--green-dark);
}

h2 {
    font-size: 24px;
    margin: 20px 0 10px;
    text-align: center;
    color: var(--green-dark);
}

p, ul, li {
    font-size: 17px;
    margin-bottom: 12px;
    padding: 0 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

ul {
    margin-top: 10px;
    margin-bottom: 20px;
}

li {
    margin-left: 25px;
}

/* -----------------------------------------------------
   GRID BORGH I
----------------------------------------------------- */

.borghi-grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.borgo-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: 0.3s;
}

.borgo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.borgo-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.borgo-card h2 {
    padding: 10px 15px;
    margin: 0;
}

.borgo-card p {
    padding: 0 15px 15px 15px;
    margin: 0;
}

.borgo-card a {
    color: inherit;
    text-decoration: none;
}

/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */*



.page-hero {
    position: relative;
    height: 330px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.page-hero h1 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 42px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}
