﻿/* -----------------------------------------------------------
   RESET & BASE TYPOGRAPHY
------------------------------------------------------------*/

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background-color: #e5d7b6;
  color: #2f2f2f;
}

/* -----------------------------------------------------------
   NAVBAR comune
------------------------------------------------------------*/

.navbar {
  background-color: #394a73 !important;
  border-bottom: none;
  box-shadow: none;
}

.navbar .nav-link,
.navbar .navbar-brand,
.navbar .dropdown-toggle {
  color: #ffffff !important;
  font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
  opacity: 0.8;
}

.navbar .dropdown-menu {
  background-color: #394a73;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar .dropdown-item {
  color: #ffffff !important;
}

.navbar .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-brand img {
  height: 40px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
  object-fit: contain;
}

/* ---------------------------------------------------
   HERO
--------------------------------------------------- */

.hero-section {
    padding-top: 100px;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;

    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;

    min-height: 220px;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: #fff;
}

.hero-section h1 {
    font-size: 2.4rem;
    font-weight: 700;
}

.hero-section h2 {
    font-size: 1.2rem;
    margin-top: .5rem;
}

/* -----------------------------------------------------------
   CARD
------------------------------------------------------------*/

.site-card-grid {
  display: grid;
  gap: 2.5rem;
  justify-content: center;
  margin: 0 auto 3rem auto;
}

.site-card {
  background-color: #324d80;
  color: #fff;
  text-align: center;
  padding: 1.8rem 1.5rem;
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
  transition: transform 0.2s ease;
  max-width: 340px;
}

.site-card:hover {
  transform: translateY(-6px);
}

.site-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.site-card-img-wrapper {
  display: inline-block;
  padding: 6px;
  border: 2px solid #fff;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.site-card-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  background: #000;
  border-radius: 4px;
}

.site-card-text {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.site-card-btn {
  display: inline-block;
  background-color: #e6cf8b;
  padding: 0.55rem 1.6rem;
  border-radius: 18px;
  font-weight: 600;
  color: #2f2f2f;
  text-decoration: none;
}

/* -----------------------------------------------------------
   FOOTER
------------------------------------------------------------*/

footer {
  background-color: #324d80;
  color: #fff;
  padding: 2rem 1rem 2.5rem 1rem;
  margin-top: 4rem;

  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

/* -----------------------------------------------------------
   PAGINE INTERNE
------------------------------------------------------------*/

.site-content-text {
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.7;
}

.site-content-wrapper {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .site-content-wrapper {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Titoli interni */
.site-content-text h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.site-content-text h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
