.fiv-page-content img,
.fiv-page-content img,
.fiv-page-content video,
.fiv-page-content iframe {
  display: block;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  height: auto;
  border-radius: 0;
  opacity: 0;
  transform: translateY(40px);
  animation: fiv-media-fadein 2.5s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes fiv-media-fadein {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.fiv-page-content img,
.fiv-page-content video,
.fiv-page-content iframe {
  display: block;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  height: auto;
  border-radius: 0;
}
.fiv-stories-main { background: #fff; padding: 2em 0; }
.fiv-stories-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2em; }
.fiv-story { background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); overflow: hidden; }
.fiv-story-img img { width: 100%; display: block; }
.fiv-story-title { font-family: 'Oswald', Arial, sans-serif; font-size: 1.5em; margin: 1em 0 0.5em; color: #222; }
.fiv-story-tags { margin-bottom: 0.5em; }
.fiv-story-tag { display: inline-block; background: #e30613; color: #fff; font-size: 0.85em; padding: 0.2em 0.7em; border-radius: 4px; margin-right: 0.5em; }
.fiv-story-excerpt { color: #444; font-size: 1em; margin-bottom: 1em; }
@media (max-width: 600px) { .fiv-stories-list { grid-template-columns: 1fr; } }
@import url('https://fonts.googleapis.com/css?family=Oswald:400,700&display=swap');
body {
  font-family: 'Oswald', Arial, Helvetica, sans-serif !important;
  background: #fff;
  color: #222;
}
/*
Theme Name: FIV2026
Theme URI: https://federvela.it/
Author: Renato Taffi
Description: Tema WP FIV Nazionale
Version: 1.0
*/

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fff;
  color: #222;
  margin: 0;
  padding: 0;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg img {
  width: 100vw;
  max-width: 100vw;
  height: 60vh;
  object-fit: cover;
  filter: brightness(0.7);
  opacity: 0;
  background: var(--media-bg, transparent);
  transform: translateY(40px);
  animation: fiv-media-fadein 2.5s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.btn-primary {
  background: #e30613;
  color: #fff;
  padding: 0.8em 2em;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: #b8000f;
}

/* Hero Block con video */
.hero-block {
  position: relative;
  width: 100vw;
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video video {
  width: 100vw;
  max-width: 100vw;
  height: 70vh;
  object-fit: cover;
  display: block;
  opacity: 0;
  background: var(--media-bg, #000);
  transform: translateY(40px);
  animation: fiv-media-fadein 2.5s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg,rgba(0,0,0,0.45) 0%,rgba(0,0,0,0.15) 100%);
  text-align: center;
}
.hero-overlay h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-overlay p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Features Section */
.features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 0;
  background: #f7f7f7;
}
.feature {
  text-align: center;
  max-width: 220px;
}
.feature img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0;
  background: var(--media-bg, transparent);
  transform: translateY(40px);
  animation: fiv-media-fadein 2.5s cubic-bezier(.4,0,.2,1) forwards;
}
.feature h2 {
  font-size: 1.3rem;
  color: #e30613;
  margin-bottom: 0.5rem;
}
.feature p {
  font-size: 1rem;
  color: #222;
}

/* Shop Preview */
.shop-preview {
  padding: 3rem 0;
  background: #fff;
}
.shop-preview h2 {
  text-align: center;
  font-size: 2rem;
  color: #222;
  margin-bottom: 2rem;
}
.products {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.product {
  background: #f7f7f7;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1.5rem;
  text-align: center;
  width: 220px;
}
.product img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  opacity: var(--media-opacity, 1);
  background: var(--media-bg, transparent);
}
.product h3 {
  font-size: 1.1rem;
  color: #e30613;
  margin-bottom: 1rem;
}
.btn-secondary {
  background: #222;
  color: #fff;
  padding: 0.5em 1.5em;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-secondary:hover {
  background: #e30613;
}

/* Slider Section */
.slider {
  position: relative;
  width: 100vw;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.slider-images {
  display: flex;
  transition: transform 0.7s cubic-bezier(.77,0,.18,1);
}
.slider-image {
  min-width: 100vw;
  height: 400px;
  object-fit: cover;
}
.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}
.slider-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e30613;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.slider-dot.active {
  opacity: 1;
  background: #e30613;
}

/* Animazioni base */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.main-nav-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}
.menu-left, .menu-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.menu-left {
  justify-content: flex-end;
}
.menu-right {
  justify-content: flex-start;
}
.logo-center {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
}
.logo-center img {
  height: 48px;
  width: auto;
}

/* Mobile bottom nav logo centrale */
.mobile-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 100;
  padding: 0.5rem 0;
}
.logo-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}
.logo-mobile img {
  height: 32px;
  width: auto;
}
.about-section {
  padding: 4rem 2rem;
  text-align: center;
}
.about-section h1 {
  font-size: 2.5rem;
  color: #e30613;
  margin-bottom: 1.5rem;
}
.about-section p {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 2rem;
}
.about-section img {
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  opacity: var(--media-opacity, 1);
  background: var(--media-bg, transparent);
}
/* Utility classes per trasparenza media */
.media-opacity-80 img,
.media-opacity-80 video {
  --media-opacity: 0.8;
}
.media-opacity-50 img,
.media-opacity-50 video {
  --media-opacity: 0.5;
}

/* News Section */
.news-section {
  padding: 4rem 2rem;
}
.news-section h1 {
  font-size: 2.2rem;
  color: #e30613;
  margin-bottom: 2rem;
  text-align: center;
}
.news-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}
.news-list li {
  background: #f7f7f7;
  margin-bottom: 1rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-list a {
  color: #222;
  font-weight: 600;
  text-decoration: none;
}
.news-list span {
  color: #888;
  font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
  padding: 4rem 2rem;
  text-align: center;
}
.contact-section h1 {
  font-size: 2.2rem;
  color: #e30613;
  margin-bottom: 2rem;
}
.contact-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-form label {
  text-align: left;
  font-weight: 600;
  color: #222;
}
.contact-form input,
.contact-form textarea {
  padding: 0.7em;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form button {
  align-self: flex-end;
}

/* Blocchi homepage */
.slider-block, .features-block, .shop-preview-block {
  margin: 0 auto;
  max-width: 1200px;
  padding: 3rem 1rem;
}

/* Fullwidth Blocks */
.wp-blocks-fullwidth > * {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
  padding: 0;
}
@media (max-width: 900px) {
  .wp-blocks-fullwidth > * {
    padding: 0;
  }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 900px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 0.3em;
    bottom: 0.3em;
    bottom: 0.3em;
    border-radius: 0.8em;
    width: 98vw;
    height: 60px;
    background: #000;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1002;
  }
  .mobile-bottom-nav .nav-link {
    color: #e30613;
    font-size: 1.1rem;
    font-weight: 700;
    background: none;
    border: none;
    outline: none;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 12px;
    transition: background 0.2s;
  }
  .mobile-bottom-nav .nav-link:active,
  .mobile-bottom-nav .nav-link:focus {
    background: #f7f7f7;
  }
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  left: -90vw;
  width: 75vw;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 24px rgba(0,0,0,0.12);
  z-index: 1003;
  transition: left 0.35s cubic-bezier(.77,0,.18,1);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.side-menu.open {
  left: 0;
}
.close-menu {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #e30613;
  align-self: flex-end;
  margin-bottom: 2rem;
  cursor: pointer;
}
.side-menu .menu {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.side-menu .menu-item a {
  color: #222;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5em 0;
  border-bottom: 1px solid #eee;
}

/* Side Menu custom list */
.side-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-menu-list > li {
  margin-bottom: 1.2rem;
}
.side-menu-list > li > a {
  color: #222;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.5em 0;
  display: block;
  border-bottom: 1px solid #eee;
  transition: color 0.2s;
}
.side-menu-list > li > a:hover {
  color: #e30613;
}
.submenu {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}
.submenu li a {
  color: #444;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.3em 0;
  display: block;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s;
}
.submenu li a:hover {
  color: #e30613;
}

/* Overlay */
.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.35);
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.side-menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  #site-header, #main-nav {
    display: none;
  }
}

.submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(.77,0,.18,1), opacity 0.25s;
}
.submenu.open {
  max-height: 200px;
  opacity: 1;
}

.menu-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 0.7em;
  margin-bottom: 2px;
}

/* Header Desktop */
@media (min-width: 901px) {
  .desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 90px;
  /* Menu header desktop: bianco con trasparenza 30% */
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s, height 0.3s, box-shadow 0.3s;
  }
  .desktop-header.scrolled {
    background: #ccc;
    height: 60px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }
  .desktop-header .logo img {
    height: 60px;
    transition: height 0.3s;
  }
  .desktop-header.scrolled .logo img {
    height: 40px;
  }
  #main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  #main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #main-nav li a {
    color: #222;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5em 0.8em;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
  }
  #main-nav li a:hover {
    background: #f7f7f7;
    color: #e30613;
  }
  .side-menu,
  .side-menu-overlay,
  .mobile-bottom-nav {
    display: none !important;
    visibility: hidden !important;
  }
}
