/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #222;
    line-height: 1.6;
}

/* HEADER */
.site-header {
    background:  #1f4fd8;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
}
.site-header {
    background:  #1f4fd8;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
}

a:-webkit-any-link {
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    text-decoration-line: ;
    text-decoration-thickness: ;
    text-decoration-style: ;
    text-decoration-color: ;
}
a:hover {
    text-decoration: underline;
	cursor: pointer;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* HERO */
.hero {
    position: relative;
    margin-bottom: 2rem;
}

.hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
}

.hero h2 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
}

/* LAYOUT */
.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* NEWS GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.news-grid-unico {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
	
}
.box-white {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    box-sizing: border-box;
}

/* Tablet */
@media (min-width: 768px) {
    .box-white {
        padding: 24px;
        margin: 20px auto;
        max-width: 720px;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .box-white {
        max-width: 1000px;
    }
}
/* RESPONSIVE */
@media (max-width: 900px) {
    

    .news-grid-unico {
        grid-template-columns: 1fr;
    }

   
}
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-content {
    padding: 1rem;
}

.news-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
	color: #373232;
}

.news-content h5 {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
	 color: #808080;
	text-decoration: none;
    text-decoration-line: ;
    text-decoration-thickness: ;
    text-decoration-style: ;
}

.date {
    font-size: 0.75rem;
    color: #2563eb;
}

.date2 {
    font-size: 0.75rem;
    color: #fff;
}

/* SIDEBAR */
.sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    height: fit-content;
}

.sidebar h4 {
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
	color: #1e6fd9;
}
.sidebar a {
    list-style: none;
	color: #1e6fd9;
}
.sidebar li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
	
}

/* FOOTER */
.site-footer {
    background:  #1f4fd8;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero img {
        height: 300px;
    }
}
/* ARCHIVIO CENTRALE */
.news-archive-section {
    margin-top: 3rem;
    padding-top: 2rem;
}

/* LINEA DI SEPARAZIONE */
.archive-divider {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

/* TITOLO */
.news-archive-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    color: #1e6fd9; /* blu mare */
}

/* LISTA ARCHIVIO */
.news-archive {
    list-style: none;
    columns: 2;
    column-gap: 2rem;
}

.news-archive li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    break-inside: avoid;
}

.news-archive .date {
    font-size: 0.75rem;
    color: #2563eb;
    margin-right: 0.4rem;
}

.news-archive a {
    color: #222;
    text-decoration: none;
}

.news-archive a:hover {
    text-decoration: underline;
	cursor: pointer;
}


/* LISTA ARCHIVIO 2*/
.news-archive2 {
	align:left;
    list-style: none;
    columns: 2;
    column-gap: 2rem;
}

.news-archive2 li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    break-inside: avoid;
}

.news-archive2 .date {
    font-size: 0.75rem;
    color: #2563eb;
    margin-right: 0.4rem;
}

.news-archive2 a {
    color: #fff;
    text-decoration: none;
}

.news-archive2 a:hover {
    text-decoration: underline;
	cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
    .news-archive {
        columns: 1;
    }
}

.form-field {
  width: 100%;
  box-sizing: border-box;

  padding: clamp(10px, 2.5vw, 14px);
  font-size: clamp(14px, 3.5vw, 16px);
  font-family: inherit;
  line-height: 1.4;

  color: #333;
  background-color: #fff;

  border: 1px solid #ccc;
  border-radius: 10px;

  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field::placeholder {
  color: #9ca3af;
}

.form-field:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

/* textarea */
textarea.form-field {
  min-height: clamp(100px, 20vw, 160px);
  resize: vertical;
}

/* mobile UX */
@media (hover: none) {
  .form-field {
    font-size: 16px; /* evita zoom su iOS */
  }
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: clamp(12px, 3vw, 14px);

  font-size: clamp(15px, 4vw, 16px);
  font-weight: 600;
  font-family: inherit;

  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #6366f1);

  border: none;
  border-radius: 10px;
  cursor: pointer;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.2s ease;
}

/* hover (desktop) */
.btn-submit:hover {
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

/* active (click) */
.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

/* focus accessibile */
.btn-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.45);
}

/* stato disabled */
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* mobile UX */
@media (hover: none) {
  .btn-submit:hover {
    transform: none;
    box-shadow: none;
  }
}

