* {
    box-sizing: border-box;
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    background-color: #00582b;
}

header {
    width: 90%;
    display: flex;
    justify-content: left;
    color: white;
    margin: auto;
    justify-content: space-between;
}

h1 {
    font-size: 50px;
    margin-top: 20px;
}

#wrapper {
    margin: auto;
    margin-bottom: 100px;
}

/* Menu */
#menu {
    width: 45%;
    margin: auto;
    margin-right: 0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.menu_item {
    width: 25%;
    background-color: #00582b;
    padding-top: 15px;
    padding-bottom: 15px;
    text-align: center;
}

.menu_item a {
    font-weight: bold;
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.menu_item:hover {
    background-color: #016e36;
}

.current {
    font-weight: bold;
    color: white;
    font-size: 24px;
    background-color: #016e36;
}

/* General Classes */

.panel {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.banner {
    margin: auto;
    background-repeat: no-repeat;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
}

.banner h2 {
    font-size: 50px;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Home Page Styles */

.home-title {
    background: linear-gradient( rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) ), url('images/background.jpg');
}

.home-intro {
    padding: 20px;
    font-size: large;
    max-width: 70%;
    margin: auto;
    line-height: 1.5;
    font-size: 18px;
}

.map {
    width: 70%;
    margin: auto;
    background-color: rgb(134, 225, 253);
    border: solid 4px;
}

.map-legend {
    width: 70%; 
    margin: 20px auto; 
}

.map-legend h3 {
    text-align: center;
    margin-top: 0;
}

.map-legend ul {
    list-style: none; 
    padding: 0; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-around;
}

#gallo-italic:hover {
    fill: #5f65bc;
}

#veneto:hover {
    fill: #49dd75;
}

#friulia:hover {
    fill: #d1e692;
}

#extreme-south:hover {
    fill: #fadf7c;
}

#tuscany:hover {
    fill: #55b4dd;
}

#south:hover {
    fill: #e86e72;
}

#sardinia:hover {
    fill: #a272a3;
}

#central:hover {
    fill: #a53546;
}

#trentino:hover {
    fill: #fba871;
}

/* Overview Styles */

.overview-title {
    background: linear-gradient( rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) ), url('images/overview-background.jpeg');
}

.overview-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 80%;
    margin: auto;
}

.overview-description {
    width: 57%;
    font-size: 17px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.overview-map {
    width: 40%;
    border: solid 4px;
}

.overview-map img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* About Page Styles */

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 80%;
    margin: auto;
}

.bio {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.bio-description {
    width: 67%;
}

.bio-img {
    width: 30%;
}

.bio-img img {
    width: 100%;
    border-radius: 8px;
}

/* Contact Page Styles */

form {
    width: 50%;
    margin: auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    height: fit-content;
}

.contact-title {
    font-size: 35px;
    color: white;
    text-align: center;
}

fieldset {
    margin-bottom: 20px;
    border-radius: 6px;
}

/* Region Pages */

.region_content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 80%;
    margin: auto;
}

.region_intro {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.region_intro_left {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.region_intro_right {
    width: 37%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.gallo-italic_title {
    background: linear-gradient( rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) ), url('images/bologna.jpg');
}

.german-ladin_title {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/dolomites.jpg');
    background-size: cover;
}

.venetian_title {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/venice.jpg');
    background-size: cover;
}

.friuli_title {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/trieste.png');
    background-size: cover;
}

.tuscan_title {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/florence.jpg');
    background-size: cover;
}

.central-italian_title {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/assisi.jpg');
    background-size: cover;
}

.southern-italian_title {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/naples.jpg');
    background-size: cover;
}

.sicilian_title {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/sicily.jpg');
    background-size: cover;
}

.sardinian_title {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/sardinia.jpg');
    background-size: cover;
}