/*
Theme Name: The Project
Theme URI: http://underscores.me/
Author: The Rope S.r.l
Author URI: https://www.therope.it
Description: Theme for The Project
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: the-project
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, custom-background, e-commerce, theme-options, sticky-post, full-width-template
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
# Woocommerce
# Footer
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


:root {
  --letter-spacing: 0.5px;
  --line-height: 1.25;
  --color-white: #FFFFFF;
  --color-black: #111111;
  --color-light-grey: #AAAAAA;
  --color-grey: #545454;
  --color-dark-grey: #292929;
  --color-highlight: #CC0000;
  --font-size-md: 0.55;
  --font-size-lg: 0.7;
  --font-size-h1: 220px;
  --font-size-h2: 190px;
  --font-size-h3: 80px;
  --font-size-h4: 40px;
  --font-size-h5: 20px;
  --font-size-h6: 16px;
  --font-size-h7: 14px;
  --font-size-h8: 12px;
  --font-size-h1-mobile: 14vw; /*85px*/
  --font-size-h2-mobile: 12vw; /*75px*/
  --font-size-h3-mobile: 32px;
  --font-size-h4-mobile: 32px;
  --icon-arrow-up: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23323232'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --icon-arrow-down: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23323232'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

:root body.dark {
  --color-primary: #FFFFFF;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: "Montserrat", sans-serif;
  font-size: clamp( 16px, 1.6vw, 20px);
  font-weight: 400;
	line-height: normal;
  color: #491745;
}

a,
a:hover {
  color: #491745;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
}

.page-header {
  width: 100%;
  height: 70vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.page-header.full-screen {
  height: 100vh;
}
.page-header.splash-f1-gallery::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  background: linear-gradient(to bottom,
  rgba(0,0,0,0) 0%,
  rgba(0,0,0,0.2) 40%,
  rgba(0,0,0,0.4) 60%,
  rgba(0,0,0,0) 100%);
}
.page-header > * {
  position: relative;
  z-index: 3;
}
.page-header h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(30px, 6vw, 200px);
  font-weight: 600;
  /* background-image: url(inc/assets/images/lenovo-f1-gallery.svg); */
  background-image: url(inc/assets/images/logo-f1-transparent.svg);
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
  width: 60vw;
  max-width: 540px;
}
.page-header h1 span {
  opacity: 0;
  padding: 2rem 5rem;
  display: block;
}
.f1 .page-header h1 {
  background: none;
  letter-spacing: -0.5vw;
  color: #E10414;
  max-width: -webkit-fit-content;
  max-width: -moz-fit-content;
  max-width: fit-content;
  text-align: right;
  line-height: 1;
  font-weight: bold;
  font-size: clamp(40px, 8vw, 140px);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.f1 .page-header h1 span {
  opacity: 1;
  color: #4C1449;
  padding: 0;
}
.f1 .page-header h1 span em {
  font-size: clamp(30px, 3vw, 200px);
  position: relative;
  top: -2.5vw;
}
.motogp .page-header h1 {
  font-size: clamp(30px, 8vw, 200px);
  background-image: none;
  letter-spacing: -6px;
}
.motogp .page-header h1 span {
  opacity: 1;
}

/* form password */
.page-header form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
}
.page-header form input[type="password"]{
  width: 100%;
  max-width: 700px;
  padding: 10px 16px;
  border-radius: 10px;
  border: solid 2px #fff;
  background-color: transparent;
  color: #fff;
  font-size: 20px;
}

.page-header form .form-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 700px;
}

.page-header form .form-group label {
  display: none;
}

.page-header form input[type="submit"]{
  background-color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  border: solid 2px #fff;
  margin-left: 20px;
}



#content-container {
    display: flex;
    position: relative;
}

#sidebar {
    width: 250px;
    min-width: 250px;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    min-height: 30vh;
    padding: 20px 0;
    transition: all 0.3s ease;
    position: absolute;
    border: solid 1.5px #491745;
    margin-top: 36px;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 5px 2px 11px rgba(0, 0, 0, 0.3);
    background-color: #fff;
}

#sidebar.collapsed {
    transform: translateX(-200px);
}

#sidebar.collapsed .sidebar-content {
    opacity: 0;
}

#sidebar.collapsed .close-sidebar {
    transform: rotate(180deg);
    right: 10px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 8px;
}
.sidebar-header.current {
  border-left: solid 10px #491745;
  background-color: rgba(73, 23, 69, 0.1);
}
.sidebar-header h3 {
  margin: 0 0 0 1px;
  text-transform: uppercase;
  color:  #491745;
  font-weight: 600;
  font-size: clamp( 16px, 2vw, 18px );
  letter-spacing: 0.6px;
  line-height: 1.5;
}
.page-template-page-gallery .sidebar-header h3 {
  margin-left: 13px;
}
.close-sidebar {
    cursor: pointer;
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: 30px;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 5px;
    border-radius: 4px;
    width: 38px;
    height: 38px;
    /* text-indent: -999px; */
    overflow: hidden;
    /* background-image: url(inc/assets/images/side-arrow@2x.png);
    background-position: 10px 0px;
    background-repeat: no-repeat;
    background-size: 30px; */
}

.collapsed .close-sidebar {
  background-position: -3px 4px;
}

.sidebar-content {
    transition: opacity 0.2s ease;
}

.title-vertical {
  display: none;
  position: absolute;
  top: 150px;
  right: -53px;
  transform: rotate(-90deg);
}
.f1 .title-vertical {
  right: -18px;
}
.collapsed .title-vertical {
  display: block;
}


.sidebar-figli {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  margin: 0;
  padding: 0px;
}

.sidebar-figli li {
    margin-bottom: 5px;
    padding: 0px 50px 0px 20px;
    width: 100%;
}
.sidebar-figli li.current {
  border-left: solid 10px #491745;
  background-color: #F1E1ED;
  padding-left: 10px;
}


.sidebar-figli li a {
    color: #491745;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    font-size: 18px;
    font-weight: 100;
    letter-spacing: -1px;
}

.sidebar-figli li a > span {
  position: relative;
  font-size: 12px;
  top: -6px;
}

#listing {
    flex: 1;
    padding: 0px;
    gap: 20px;
    transition: margin-left 0.3s ease;
    margin-top: 38px;
    margin-left: 270px;
}

/* When sidebar is collapsed, show 4 columns */
#sidebar.collapsed + #listing {
    margin-left: 60px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    #listing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #sidebar.collapsed + #listing {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-250px);
    }

    #sidebar.collapsed {
        transform: translateX(0);
    }

    #listing {
        margin-left: 0;
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    #sidebar.collapsed + #listing {
        margin-left: 0;
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

#listing a {
    text-decoration: none;
}

#listing figure {
  margin: 0;
}

.page-template-page-home-2026 #listing figure {
  aspect-ratio: 548/365;
  border-radius: 12px;
  background-color: #955F7C;
}

#listing img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
    margin: 0;
}

/* Navigation styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.navbar.scrolled .logo {
    color: #333;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: #333;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.navbar.scrolled .nav-links a::after {
    background-color: #333;
}

.nav-links a:hover::after {
    width: 100%;
}


/* Animation for grid items */
.grid-item {
    transition: all 0.3s ease;
}


.item-card {
  overflow: hidden;
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  padding: 0;
}
.item-card figure {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 26px;
  border: solid 2px #491745;
  overflow: hidden;
}
.item-card figure img {
  width: 100%;
}
.item-card-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.item-card-title {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: calc( 100% - 24px );
  padding: 14px;
  border-radius: 18px;
  background-color: var(--color-white);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
}
.item-card-title h2 {
  margin: 0;
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 600;
}

.race-title {
  width: calc(100% - 32px);
  margin: 50px 16px 16px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 20px;
  border-left: solid 20px #491745;
  background-color: rgba(73, 23, 69, 0.1);
  padding: 16px;
  flex-direction: column;
}
.race-title h2 {
  font-weight: 600;
  margin: 0;
}
.race-data {
  margin: 0;
}

.race-actions {
  width: calc(100% - 32px);
  margin: 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: row;
  gap: 20px;
}
.download-button {
  text-decoration: none;
  border-radius: 8px;
  border: solid 1px #491745;
  color: #491745 !important;
  padding: 8px 16px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 38px;
}
.download-button-icon {
  display: flex;
  width: 50px;
  height: 50px;
  min-height: 50px;
  background-color: #fff;
  background-image: url(inc/assets/images/download.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  position: absolute;
  z-index: 10;
  right: 12px;
  bottom: 12px;
  border-radius: 10px;
  text-indent: -999px;
  overflow: hidden;
}
.select-image-download {
  display: flex;
  width: 50px !important;
  height: 50px !important;
  min-height: 50px;
  background-color: #491745 !important;
  position: absolute;
  z-index: 10;
  left: 44px;
  bottom: 12px;
  border-radius: 10px;
  text-indent: -999px;
  overflow: hidden;
  border: solid 1px #fff !important;
}

/* .select-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px !important;
  height: 50px !important;
  background-color: #fff; /* bianco sempre *
  border-radius: 10px;
  border: 1px solid #491745;
  position: absolute;
  left: 12px;
  bottom: 12px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

/* Nascondi il checkbox nativo
.select-image input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 2;
  cursor: pointer;
}

/* Spunta visuale
.select-image::after {
  content: "";
  width: 20px;
  height: 20px;
  background-color: transparent;
  mask: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23491745" stroke-width="4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M5 13l4 4L19 7"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23491745" stroke-width="4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M5 13l4 4L19 7"/></svg>') center / contain no-repeat;
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 1;
}

.select-image input[type="checkbox"]:checked ~ *::after,
.select-image input[type="checkbox"]:checked::after {
  opacity: 1;
} */




.gallery-item {
  position: relative;
}
.gallery-item > a {
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

.masonry-grid,
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 !important;
  margin: 20px;
}

.masonry-grid .gallery-item {
  transition: all 0.3s;
  margin-bottom: 20px;
}
.grid .gallery-item {
  transition: all 0.3s;
  margin-bottom: 0px;
}

.masonry-grid.columns-3 .gallery-item,
.grid .gallery-item {
  width: calc(33.333% - 13.33px);
}

.masonry-grid.columns-4 .gallery-item {
  width: calc(25% - 15px);
}


/* lightbox */
.gallery-item {
	margin-bottom: 20px;
	position: relative;
}

.download-lightbox-btn {
  display: flex;
  width: 50px;
  height: 50px;
  min-height: 50px;
  background-color: #fff;
  background-image: url(inc/assets/images/download.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  position: absolute;
  z-index: 10;
  right: 12px;
  bottom: 12px;
  border-radius: 10px;
  text-indent: -999px;
  overflow: hidden;
}
.download-lightbox-btn:hover {
	background-color: #fff;
}
.glightbox-clean .gslide-description {
    background: transparent !important;
    position: absolute;
    bottom: 0;
}






.bg-color-motogp-header {
  background-color: #F0E1ED;
  padding: 300px 100px 0;
  flex-direction: column;
  background-position: -9vw 7vw;
  background-size: 60%;
  height: 50vw;
  align-items: flex-end;
  justify-content: flex-start;
}
.splash-motogp {
  position: relative;
  width: 50%;
  min-width: 50%;
  height: 70vh;
  margin: 0;
  position: relative;
}
.splash-motogp img {
  /* width: 160%;
  left: -44%; */
  width: 120%;
  -o-object-fit: cover;
  object-fit: cover;
  position: relative;
  left: -32%;
  bottom: -11%;
}
.icona-lenovo-motogp {
  width: 20%;
  max-height: 135px;
  max-width: 225px;
  position: absolute;
  top: 100px;
  right: 100px;
}
.icona-lenovo-motogp svg {
  width: 100%;
}
.bg-color-motogp-header h1 {
  width: 100%;
  font-size: clamp( 30px, 6vw, 200px ) !important;
  font-weight: bold;
  letter-spacing: -6px;
  color: #4D144A;
  text-align: right;
  line-height: 1 !important;
}
.bg-color-motogp-header h1 span {
  color: #E10813;
  text-align: right;
  padding: 0;
  display: block;
}

.motogp .page-header form,
.f1 .page-header form {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    margin-top: 60px;
    color: #4D144A;
}

.motogp .page-header form .form-group,
.f1 .page-header form .form-group {
    max-width: 560px;
}
.motogp .page-header form .form-group input,
.f1 .page-header form .form-group input {
  border-color: #4D144A;
  color: #4D144A;
}
.motogp .page-header form .form-group input[type="submit"],
.f1 .page-header form .form-group input[type="submit"] {
  background-color: #4D144A;
  color: #fff;
}
.motogp .full-screen.bg-color-motogp-header,
.f1 .full-screen.bg-color-motogp-header {
  background-position: -9vw bottom;
  justify-content: flex-start;
}

.bg-color-f1-header {
  background-color: #F0E1ED;
  padding: calc( 50vh - 280px ) 6vw 0;
  flex-direction: column;
  background-position: 5vw bottom;
  /* background-size: 45vw; */
  background-size: 75vh;
  height: 60vw;
  max-height: 100vh;
  align-items: flex-end;
  justify-content: flex-start;
}
/* Quando l'altezza supera la larghezza (portrait mode) */
@media (max-aspect-ratio: 1/1), (max-aspect-ratio: 5/4) {
  .bg-color-f1-header {
    background-size: 53vw;
    padding-top: 22vw;
  }
}

.logo-lenovo-f1 {
  position: absolute;
  top: 10%;
  right: 5%;
  max-width: 476px;
  width: 50%;
}
.logo-lenovo-f1 img {
  width: 100%;
}


/* paginazione */
.gallery-pagination {
  margin-top: 20px;
  text-align: center;
}

.gallery-pagination button {
  padding: 6px 12px;
  margin: 0 10px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

.gallery-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}


.item-card-content h2 span,
span.copy {
  font-size: 12px;
  position: relative;
  top: -5px;
}


.disable {
  pointer-events: none !important;
}


@media screen and (max-width: 978px) {

  .bg-color-f1-header {
    height: 100vh;
    background-size: 80vw;
    /* padding-top: 30vw; */
    padding-top: 170px;
    background-position: 5vw bottom;
  }
  .f1 .page-header h1 {
    width: 100%;
    letter-spacing: -0.7vw;
    font-size: clamp(55px, 11vw, 200px);
    position: relative;
    top: 0;
    transform: none;
  }
  .logo-lenovo-f1 {
    min-width: 200px;
    /* top: 5%; */
    top: 50px;
  }


  .f1 .page-header form {
    text-align: right;
    margin-top: 30px;
  }


  .masonry-grid .gallery-item,
  .grid .gallery-item {
    width: 100% !important;
  }

  .bg-color-motogp-header {
    background-color: #F0E1ED;
    padding: 180px 30px 90vw;
    flex-direction: row;
    background-position: -25vw calc(100% + 0px);
    background-size: 120%;
    height: calc(var(--vh, 1vh) * 100);
    min-height: 90vh; /* fallback per browser vecchi */
    align-items: center;
  }
  .motogp .full-screen.bg-color-motogp-header {
    background-position: -24vw calc(100% + 0px);
    padding: 150px 30px 90vw;
    align-items: center;
  }
  .icona-lenovo-motogp {
    width: 30%;
    max-height: 109px;
    max-width: 225px;
    position: absolute;
    top: 0px;
    right: 30px;
  }

  .bg-color-motogp-header h1 {
    width: 100%;
    font-size: 12vw !important;
    letter-spacing: -4px !important;
  }

  #sidebar {
      transform: translateX(-200px);
      z-index: 30;
  }
  .sidebar-figli li.current {
    background-color: transparent;
  }
  .collapsed .sidebar-figli li.current {
    background-color: #F1E1ED;
  }

  .race-actions {
    flex-direction: column;
    margin-bottom: 0;
  }
  .race-actions > a {
    width: 100%;
  }

  #listing {
    margin-left: 70px !important;
  }
  .title-vertical {
    display: block !important;
    right: -42px;
  }
  .collapsed .title-vertical {
    display: none !important;
    right: -42px;
  }
  .close-sidebar {
    padding-top: 0px;
  }
  .collapsed .close-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0px;
    padding-top: 10px;
  }

  .motogp .full-screen.bg-color-motogp-header {
    display: flex;
    flex-direction: column;
  }
  .motogp .page-header form {
    margin-top: 30px;
  }
  .motogp .page-header form .d-block.mb-3 {
    text-align: right;
  }
  #sidebar .close-sidebar {
    transform: rotate(180deg);
    right: 10px;
    top: 20px;
  }
  #sidebar.collapsed .close-sidebar {
    transform: rotate(0deg);
    right: 10px;
    top: 24px;
  }

}

@media screen and (max-width: 375px) and (aspect-ratio: 375/667) {
  /* Stili per dispositivi con proporzione tipo iPhone SE */
  .motogp .full-screen.bg-color-motogp-header {
    background-position: -24vw calc(100% + 50px);
  }
}

@media screen and (aspect-ratio: 9/16) {
    /* Qualsiasi schermo con proporzione 9:16 */
    .bg-color-f1-header {
        height: 90vh;
    }
}

@media screen and (min-width: 979px) {

  .collapsed .sidebar-figli li.current {
    background-color: transparent;
  }
  .f1 .page-header.full-screen.password h1 {
    position: relative;
    top: 0;
    transform: none;
  }
  .page-header.full-screen.password {
    height: auto;
    min-height: 100vh;
    padding-bottom: 5vh;
    padding-top: 300px;
  }
}
@media screen and (min-width: 2500px) {
  .f1 .page-header h1 {
    letter-spacing: -8px;
  }
  .f1 .page-header h1 span em {
    top: -57px;
  }
}

/* 2026 Styles */
.page-template-page-gallery-2026 {
  .f1 .page-header form,
  .motogp .page-header form {
      color: #fff;
  }
  .f1 .page-header form .form-group input,
  .motogp .page-header form .form-group input {
      border-color: #fff;
      color: #fff;
  }
  .f1 .page-header form .form-group input[type="submit"],
  .motogp .page-header form .form-group input[type="submit"] {
      background-color: #fff;
      border-color: #fff;
      color: #4D144A;
  }
}


.page-template-page-home-2026 .bg-color-f1-header,
.page-template-page-home-2026 .bg-color-motogp-header,
.page-template-page-gallery-2026 .bg-color-f1-header,
.page-template-page-gallery-2026 .bg-color-motogp-header{
  background-color: transparent;
  background-size: cover;
  background-position: center;
  height: 100vh;
  padding: 0;
}

.page-template-page-gallery-2026 .f1 .page-header.full-screen.password h1{
  position: absolute;
  left: 5%;
  right: auto;
  top: 35%;
}

.page-template-page-gallery-2026 .motogp .page-header form,
.page-template-page-gallery-2026 .f1 .page-header form{
  position: absolute;
  left: 5%;
  right: auto;
  top: 80%;
  transform: translateY(-50%);
  align-items: flex-start;
  width: auto;
  max-width: auto;
}

.page-template-page-home-2026 .f1 .page-header h1,
.page-template-page-home-2026 .bg-color-motogp-header h1,
.page-template-page-gallery-2026 .f1 .page-header h1,
.page-template-page-gallery-2026 .bg-color-motogp-header h1{
  left: 5%;
  text-align: left;
}

.page-template-page-home-2026 .logo-lenovo-f1,
.page-template-page-home-2026 .icona-lenovo-motogp,
.page-template-page-gallery-2026 .logo-lenovo-f1,
.page-template-page-gallery-2026 .icona-lenovo-motogp{
  left: 5%;
  right: auto;
}
.page-template-page-home-2026 .logo-lenovo-f1,
.page-template-page-gallery-2026 .logo-lenovo-f1 {
  width: 27%;
}

.page-template-page-home-2026 .f1 .page-header h1 span,
.page-template-page-home-2026 .bg-color-motogp-header h1,
.page-template-page-gallery-2026 .f1 .page-header h1 span,
.page-template-page-gallery-2026 .bg-color-motogp-header h1{
  color: white;
}

.page-template-page-home-2026 .bg-color-motogp-header h1,
.page-template-page-gallery-2026 .bg-color-motogp-header h1{
  position: absolute;
  left: 5%;
  top: 56%;
  transform: translateY(-50%);
  white-space: nowrap;
}

.page-template-page-home-2026 .f1 .page-header h1 span,
.page-template-page-home-2026 .motogp .page-header h1 span,
.page-template-page-gallery-2026 .f1 .page-header h1 span,
.page-template-page-gallery-2026 .motogp .page-header h1 span{
  text-align: left;
}

.page-template-page-gallery-2026 .bg-color-motogp-header {
  background-image: url(inc/assets/images/ducati-dk.png) !important;
  background-position: center !important;
}


@media screen and (max-width: 979px) {
  .page-template-page-home-2026 .logo-lenovo-f1,
  .page-template-page-gallery-2026 .logo-lenovo-f1 {
    width: 50%;
  }
  .page-template-page-home-2026 .bg-color-f1-header,
  .page-template-page-gallery-2026 .bg-color-f1-header {
    background-image: url(inc/assets/images/f1-mb.png) !important;
  }
  .page-template-page-home-2026 .bg-color-f1-header,
  .page-template-page-home-2026 .bg-color-motogp-header,
  .page-template-page-gallery-2026 .bg-color-f1-header,
  .page-template-page-gallery-2026 .bg-color-motogp-header{
    height: 100vh;
    padding: 140px 6vw 0 !important;
  }
  .page-template-page-gallery-2026 .f1 .page-header.full-screen.password h1,
  .page-template-page-gallery-2026  .f1 .page-header.full-screen h1,
  .page-template-page-home-2026 .f1 .page-header h1 {
    top: 16%;
    position: absolute;
  }
  .page-template-page-gallery-2026 .f1 .page-header form {
    top: 31vw;
  }
  .page-template-page-home-2026 .logo-lenovo-f1,
  .page-template-page-gallery-2026 .logo-lenovo-f1 {
    top: 30px;
    left: 5% !important;
    right: inherit !important;
  }
  .page-template-page-gallery-2026 .f1 .page-header form,
  .page-template-page-gallery-2026 .motogp .page-header form {
    position: relative;
    left: 0;
    width: 100%;
    .d-block.mb-3 {
      color: #fff;
      font-size: 12px;
      text-align: left;
    }
    input[type="password"] {
      border-color: #fff;
      color: #fff !important;
    }
    input[type="submit"] {
      background-color: #fff;
      border-color: #fff;
      height: 50px;
    }
  }


  /* motogp */
  .page-template-page-home-2026 .icona-lenovo-motogp,
  .page-template-page-gallery-2026 .icona-lenovo-motogp {
    top: 5%;
  }
  .page-template-page-home-2026 .motogp h1,
  .page-template-page-gallery-2026 .motogp h1 {
    max-width: 90vw;
    top: 24%;
  }
  .page-template-page-home-2026 .bg-color-motogp-header,
  .page-template-page-gallery-2026 .bg-color-motogp-header {
    background-image: url(inc/assets/images/ducati-mb.png) !important;
  }
  .page-template-page-home-2026 .icona-lenovo-motogp img,
  .page-template-page-gallery-2026 .icona-lenovo-motogp img {
    width: 100%;
  }
  .page-template-page-gallery-2026 .motogp .page-header form {
    top: 18%;
    max-width: 90vw;
  }
}
@media screen and (max-width: 400px) {
  .page-template-page-gallery-2026 .f1 .page-header form {
      top: 39vw !important;
  }
  .page-template-page-gallery-2026 .motogp h1 {
      top: 30vw;
  }
}
@media screen and (max-width: 500px) {
  .page-template-page-gallery-2026 .f1 .page-header form {
      top: 39vw;
  }
  .page-template-page-gallery-2026 .motogp .page-header form {
      top: 39vw;
  }
  .page-template-page-gallery-2026 .motogp h1 {
      top: 48vw !important;
  }
  .page-template-page-gallery-2026 .motogp .page-header form {
    top: 33vw !important;
  }
}
@media screen and (max-width: 700px) {
  .page-template-page-gallery-2026 .motogp .page-header form {
    top: 39vw !important;
  }
}
@media screen and (max-width: 778px) {
  .page-template-page-gallery-2026 .motogp h1 {
      top:42vw !important;
  }
}
@media screen and (max-width: 978px) {
  .page-template-page-gallery-2026 .motogp h1 {
      top: 38vw;
  }
  .page-template-page-gallery-2026 .motogp .page-header form {
    top: 39vw !important;
  }
}
