.tk-yt,
.tk-yt__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: inherit;
}
.tk-yt {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #001e48 center / cover no-repeat;
}
/* Pulsante play: copre tutta la copertina */
.tk-yt__play {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.tk-yt__play::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: rgba(0, 0, 0, .65);
  transition: background .2s;
}
.tk-yt__play::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
/* Con la fascia informativa in basso il pulsante sale un po' */
.tk-yt:has(.tk-consent__note) .tk-yt__play::before { transform: translate(-50%, -70%); }
.tk-yt:has(.tk-consent__note) .tk-yt__play::after { transform: translate(-35%, -70%); }
.tk-yt__play:hover::before,
.tk-yt__play:focus-visible::before { background: #ff0033; }

/* Contenuti esterni: avviso, link privacy e "Ricorda la mia scelta" */
.tk-consent__note p {
  margin: 0;
}
.tk-consent__note a {
  color: inherit;
  text-decoration: underline;
}
.tk-consent__remember {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  cursor: pointer;
}
.tk-consent__remember input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #0048ae;
}
/* Sulla copertina del video: fascia in basso, sopra al pulsante play */
.tk-yt .tk-consent__note {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 8px 12px;
  background: rgba(0, 30, 72, .85);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}
/* Al posto della mappa */
.tk-consent--map {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #eef3fa;
  text-align: center;
}
.tk-consent__inner {
  max-width: 420px;
  color: #596572;
  font-size: 14px;
  line-height: 1.5;
}
.tk-consent__title {
  margin: 0 0 8px;
  color: #00419d;
  font-size: 22px;
  font-weight: 600;
}
.tk-consent--map .tk-consent__remember {
  margin: 10px 0 16px;
}
/* Preferenze nella pagina Privacy Policy */
.tk-prefs__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tk-prefs__item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #d3dbe5;
}
.tk-prefs__text {
  flex: 1 1 320px;
  display: grid;
  gap: 4px;
}
.tk-prefs__text strong {
  color: #00419d;
}
.tk-prefs__state {
  color: #596572;
  font-size: 14px;
}
.tk-prefs__item.is-allowed .tk-prefs__state {
  color: #1d7a3b;
}
.tk-prefs__note {
  color: #596572;
  font-size: 14px;
}
/* Copertina e player seguono l'allineamento dell'elemento YOOtheme (destra / centro). */
.uk-text-right > .tk-yt,
.uk-text-right > .tk-yt__frame { margin-left: auto; }
.uk-text-center > .tk-yt,
.uk-text-center > .tk-yt__frame { margin-left: auto; margin-right: auto; }
.tkev-field input{
	background: #f4f3f3;
	border-radius: 5px;
	box-shadow:initial;
}
.tkev-field checkbox{
	background: #f4f3f3;
	border-radius: 5px;
	box-shadow:initial;
}

/* Menu mobile: voce "SUOM XIV" come pulsante blu, come "Evento SUOM" su desktop. */
#tm-dialog-mobile .uk-nav > li > a[href*="/suom-xiv"] {
  display: block;
  margin: 6px 0;
  padding: 0 20px;
  background-color: #00419d;
  color: #fff;
  border-radius: 7px;
  line-height: 44px;
  text-align: center;
  transition: background-color .2s ease-in-out;
}
#tm-dialog-mobile .uk-nav > li > a[href*="/suom-xiv"]:hover,
#tm-dialog-mobile .uk-nav > li > a[href*="/suom-xiv"]:focus-visible {
  background-color: #0d0a46;
  color: #fff;
}

@media (max-width: 1530px) {
    .uk-navbar-nav {
        gap: 10px;
    }
}
/* Margini laterali 40px solo su desktop: su tablet/smartphone valgono quelli sotto. */
@media (min-width: 960px) and (max-width: 1500px) {
    .uk-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}
@media (max-width: 1400px) {
	.uk-logo.uk-navbar-item{
		width:200px;
	}
	.homevideo iframe{
		max-width:400px;
	}
}
/* 70px solo su desktop: sotto i 960px la scala è nella sezione "Responsive" in fondo. */
@media (min-width: 960px) and (max-width: 1400px) {
	.uk-heading-small {
        font-size: 70px;
    }
}

@media (max-width: 1330px) {
    .uk-navbar-nav {
        gap: 0px;
    }
}

/* ==========================================================================
   Responsive tablet e smartphone
   Lo stile YOOtheme parte da titoli pensati per desktop (heading-small 80px,
   h1 51px, h3 più grande di h2): qui la scala per gli schermi più piccoli.
   ========================================================================== */

/* Le parole lunghe ("dell'Associazione", "post-contatore") vanno a capo invece di uscire dallo schermo. */
.uk-heading-small, .uk-heading-medium, .uk-heading-large,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, h1, h2, h3, h4 {
    overflow-wrap: break-word;
}

/* Tablet */
@media (max-width: 959px) {
    .uk-container {
        padding-left: 30px;
        padding-right: 30px;
    }
    .uk-heading-small { font-size: 56px; }
    .uk-h1, h1 { font-size: 42px; }
    .uk-h3, h3 { font-size: 28px; }
    .uk-h4, h4 { font-size: 24px; }
}

/* Smartphone */
@media (max-width: 639px) {
    .uk-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .uk-heading-small { font-size: 42px; line-height: 1.05; }
    .uk-h1, h1 { font-size: 32px; line-height: 1.1; }
    .uk-h2, h2 { font-size: 26px; }
    .uk-h3, h3 { font-size: 24px; line-height: 1.3; }
    .uk-h4, h4 { font-size: 20px; line-height: 1.35; }
}
.tk-prefs__button {
  flex: none;
  min-width: 150px;
}
.tk-prefs__item.is-allowed .tk-prefs__button {
  border: 1px solid #00419d;
  background: transparent;
  color: #00419d;
}
