/* ══════════════════════════════════════
   PAGINE AGGIUNTIVE FM2
   (hub, news, contatti, portali hero)
══════════════════════════════════════ */

/* ── Hub grid (categorie figlie) ── */
.fm2-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.fm2-hub-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #EAEAEC;
  text-decoration: none;
  transition: background .25s, border-color .25s;
}
.fm2-hub-card:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.fm2-hub-card-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: .04em;
  transition: color .25s;
}
.fm2-hub-card:hover .fm2-hub-card-title { color: #fff; }
.fm2-hub-card-arrow {
  font-size: 20px;
  color: var(--red);
  transition: transform .25s, color .25s;
}
.fm2-hub-card:hover .fm2-hub-card-arrow {
  transform: translateX(6px);
  color: #fff;
}

/* ── Hero banner con testo sovrapposto ── */
.fm2-hero-banner-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 80px 80px;
  max-width: 940px;
  padding-top: var(--header-h);
}
.fm2-hero-banner-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.0;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.fm2-hero-banner-title span { color: var(--red); }
.fm2-hero-banner-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 520px;
}

/* ── News grid (archivio post) ── */
.fm2-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.fm2-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  transition: box-shadow .3s;
  text-decoration: none;
}
.fm2-news-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.09); }
.fm2-news-card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.fm2-news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fm2-news-card:hover .fm2-news-card-img img { transform: scale(1.05); }
.fm2-news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.fm2-news-card-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.fm2-news-card-tag {
  background: var(--red); color: #fff;
  padding: 3px 10px; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; border-radius: 2px;
}
.fm2-news-card-date { font-size: 12px; color: #aaa; }
.fm2-news-card-title {
  font-size: 18px; font-weight: 700; line-height: 1.2;
  color: var(--navy); margin-bottom: 10px; text-transform: uppercase;
}
.fm2-news-card-excerpt { font-size: 14px; color: #555560; line-height: 1.7; flex: 1; }
.fm2-news-card-more {
  margin-top: 16px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--red);
}
.fm2-news-pagination { text-align: center; padding: 20px 0; }
.fm2-news-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.fm2-news-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1.5px solid #dde0e8;
  font-size: 13px; font-weight: 600; color: var(--navy);
  border-radius: 2px; transition: background .2s, border-color .2s, color .2s;
}
.fm2-news-pagination .page-numbers.current,
.fm2-news-pagination .page-numbers:hover {
  background: var(--navy); border-color: var(--navy); color: #fff;
}

/* ── Contatti grid ── */
.fm2-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.fm2-contact-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}
.fm2-contact-item:last-of-type { border-bottom: none; }
.fm2-contact-item-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--red); margin-bottom: 6px;
}
.fm2-contact-item-val {
  font-size: 15px; color: #333; line-height: 1.7;
}
.fm2-contact-item-val a { color: var(--navy); transition: color .2s; }
.fm2-contact-item-val a:hover { color: var(--red); }
.fm2-contact-map { margin-top: 32px; }

/* ── Form contatti ── */
.fm2-form { display: flex; flex-direction: column; gap: 20px; }
.fm2-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fm2-form-group { display: flex; flex-direction: column; gap: 8px; }
.fm2-form-group label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: #888;
}
.fm2-form-group input,
.fm2-form-group select,
.fm2-form-group textarea {
  font-family: Roboto, sans-serif;
  font-size: 14px; color: #222;
  border: 1.5px solid #dde0e8;
  border-radius: 2px;
  padding: 12px 16px;
  background: #fff;
  transition: border-color .2s;
  outline: none;
}
.fm2-form-group input:focus,
.fm2-form-group select:focus,
.fm2-form-group textarea:focus { border-color: var(--navy); }
.fm2-form-group textarea { resize: vertical; min-height: 120px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .fm2-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .fm2-contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .fm2-hub-grid { grid-template-columns: 1fr; }
  .fm2-news-grid { grid-template-columns: 1fr; }
  .fm2-form-row { grid-template-columns: 1fr; }
  .fm2-hero-banner-inner { padding: 0 24px 60px; }
  .fm2-hero-banner-title { font-size: clamp(36px, 8vw, 60px); }
}
<!-- ══════════════════════════════════════
     CSS — aggiungere in fm2-pages.css
══════════════════════════════════════ -->
<style>
/* ── Layout generale ── */
.app-sections {
    width: 100%;
}
 
.app-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 620px;
}
.app-row--reverse {
    direction: rtl;
}
.app-row--reverse > * {
    direction: ltr;
}
 
/* ── Colonna testo ── */
.app-row-text {
    background: #fff;
    display: flex;
    align-items: center;
}
.app-row--reverse .app-row-text {
    background: #F5F5F7;
}
.app-row:not(.app-row--reverse):nth-child(odd) .app-row-text {
    background: #fff;
}
 
.app-row-inner {
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 640px;
    width: 100%;
}
 
.app-row-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--red);
}
 
.app-row-title {
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--navy);
    line-height: 1.0;
    margin: 0;
    letter-spacing: -.01em;
}
 
.app-row-rule {
    width: 48px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}
 
.app-row-lead {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    font-weight: 400;
    margin: 0;
}
 
.app-row-body {
    font-size: 14px;
    color: #666;
    line-height: 1.85;
    margin: 0;
}
 
.app-row-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
 
.app-row-list li {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    padding-left: 22px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: .04em;
}
 
.app-row-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--red);
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    top: -1px;
}
 
.app-row-btn {
    display: inline-block;
    background: var(--navy);
    color: #fff !important;
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background .2s;
    align-self: flex-start;
    margin-top: 8px;
}
.app-row-btn:hover {
    background: var(--red) !important;
    color: #fff !important;
}
 
/* ── Colonna media / slideshow ── */
.app-row-media {
    position: relative;
    overflow: hidden;
    min-height: 620px;
}
 
.app-slideshow {
    position: absolute;
    inset: 0;
}
 
.app-slide-track {
    width: 100%;
    height: 100%;
    position: relative;
}
 
.app-slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
}
.app-slide-item.active {
    opacity: 1;
}
 
.app-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
 
/* Placeholder */
.app-placeholder {
    width: 100%;
    height: 100%;
    background: #dde0e8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
 
.app-ph-num {
    font-size: 80px;
    font-weight: 900;
    color: rgba(0,39,87,.12);
    line-height: 1;
    letter-spacing: -.04em;
}
 
.app-ph-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #aaa;
}
 
/* Frecce */
.app-slide-prev,
.app-slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0,0,0,.4);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .2s;
}
.app-slide-prev:hover,
.app-slide-next:hover { background: var(--red); }
.app-slide-prev { left: 16px; }
.app-slide-next { right: 16px; }
 
/* Dots */
.app-slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.app-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .2s, transform .2s;
    border: none;
}
.app-dot.active {
    background: #fff;
    transform: scale(1.3);
}
 
/* Contatore */
.app-slide-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    letter-spacing: .06em;
}
.app-slide-sep { color: rgba(255,255,255,.35); }
 
/* ── Responsive ── */
@media (max-width: 1200px) {
    .app-row-inner { padding: 64px 48px; }
}
 
@media (max-width: 1024px) {
    .app-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .app-row--reverse { direction: ltr; }
    .app-row-media {
        min-height: 420px;
        position: relative;
    }
    .app-row-inner { padding: 56px 32px; max-width: 100%; }
}
 
@media (max-width: 768px) {
    .app-row-media { min-height: 320px; }
    .app-row-inner { padding: 40px 20px; gap: 16px; }
    .app-row-title { font-size: clamp(28px, 6vw, 40px); }
    .app-row-lead { font-size: 15px; }
}
</style>