/*
 * morehipsymposium26.medacta.com
 *
 * Stile basato su grandrounds-hip-revision-series.medacta.com
 * DESKTOP: proporzionale al Figma 1920px — formula: px / 1920 * 100 = vw
 * MOBILE:  proporzionale al Figma 402px  — formula: px / 402 * 100 = vw
 * Font:    clamp(min_mobile, vw, max_figma)
 */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-size: 1.2em;
    font-family: 'RobotoCondensed-Regular', sans-serif;
    font-weight: 300;
    color: #0A4185;
    background: #FFFFFF;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Ripristina padding liste per compatibilità con index.html (Bootstrap non lo imposta) */
ul, ol { padding-left: 2em; }

/* ===== LAYOUT ===== */
/* Figma: contenuto 1248px su 1920px = 65vw */
.container {
    width: 65vw;
    margin: 0 auto;
}

/* ===== HEADER ===== */
/* Figma desktop: Frame 6, 1247x119, padding-top 30px, logos spaced */
.header {
    padding: 1.56vw 0; /* 30/1920 */
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Figma: logo Medacta 158x59, logo MORE 169x58 */
.header__logo img {
    height: 3vw; /* 59/1920 */
    width: auto;
}

/* ===== HERO ===== */
/* Figma desktop: Frame 1, 1920x333, padding 50px 336px, gap 20px */
.hero {
    background: url('../images/sfondo-velette.jpg') center/cover no-repeat;
    padding: 2.6vw 17.5vw; /* 50/1920, 336/1920 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.04vw; /* 20/1920 */
}
/* Figma: Frame 8, badge + title raggruppati senza gap */
.hero__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Figma: badge 176x37, font 25px */
.hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.21vw 1.04vw; /* 4/1920, 20/1920 */
    padding-left: calc(1.04vw + 0.35em); /* compensa letter-spacing per centrare */
    background: #00B8F1;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 1.3vw, 25px); /* 25/1920 */
    line-height: 1.16;
    letter-spacing: 0.35em;
    font-variant: all-small-caps;
    color: #FFFFFF;
}
/* Figma: title 72px, line-height 120% */
.hero__title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3.75vw, 72px); /* 72/1920 */
    line-height: 120%;
    letter-spacing: -0.03em;
    font-variant: all-small-caps;
    color: #14387F;
}
/* Figma: description 25px */
.hero__description {
    font-size: clamp(14px, 1.3vw, 25px); /* 25/1920 */
    line-height: 120%;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

/* ===== VIDEO GRID ===== */
/* Figma desktop: Frame 5, 1247x795, top padding 40px */
.videos {
    padding: 2.08vw 0 3.13vw; /* 40/1920, 60/1920 */
}
/* Figma: 3 colonne, card 376px, column-gap 60px, row-gap 40px */
.videos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 3.13vw; /* 60/1920 */
    row-gap: 2.08vw;    /* 40/1920 */
}
.video-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
/* Figma: thumbnail 376x220 */
.video-card__thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 376 / 220;
    background: #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.video-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Figma: play icon 77x77 */
.video-card__play {
    position: absolute;
    width: 4.01vw; /* 77/1920 */
    height: 4.01vw;
}
.video-card__play svg {
    width: 100%;
    height: 100%;
}
/* Vimeo embed responsive wrapper (16:9) */
.video-card__embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}
.video-card__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* Figma: title 20px, gap 31px */
.video-card__title {
    margin-top: 1.61vw; /* 31/1920 */
    font-size: clamp(13px, 1.04vw, 20px); /* 20/1920 */
    line-height: 120%;
}

/* ===== BOTTOM CTA SECTION ===== */
/* Figma desktop: Frame 14, 1920x503, bg image */
.bottom-section {
    background: url('../images/sfondo-low.jpg') center/cover no-repeat;
    padding: 2.6vw 0; /* 50/1920 */
}
/* Figma: 2 card affiancate 594px, gap 60px */
.bottom-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.13vw; /* 60/1920 */
}
/* Figma: gap interno 20px */
.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.04vw; /* 20/1920 */
}
/* Figma: immagine 594x160 */
.cta-card__image {
    width: 100%;
    aspect-ratio: 594 / 160;
    overflow: hidden;
}
.cta-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Figma: heading 32px */
.cta-card__heading {
    font-weight: 700;
    font-size: clamp(14px, 1.67vw, 25px); /* 32/1920 */
    line-height: 120%;
}
/* Figma: text 20px */
.cta-card__text {
    font-size: clamp(13px, 1.04vw, 20px); /* 20/1920 */
    line-height: 120%;
}
/* Figma: CTA 25px, padding 20px 60px, border-radius 10px */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.94vw 1.70vw; /* 20/1920, 60/1920 */
    background: #14387F;
    border-radius: 0.52vw; /* 10/1920 */
    border: none;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(13.6px, 1.17vw, 18.5px); /* 25/1920 * 0.9 */
    line-height: 19px;
    color: #FFFFFF;
    transition: background 0.2s ease;
}
.cta-button:hover {
    background: #0f2d66;
}

/* ===== FOOTER ===== */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.6vw 17.5vw; /* 50/1920, 336/1920 */
    gap: 1.04vw; /* 20/1920 */
}
.site-footer__logo {
    width: 15.63vw; /* 300/1920 */
    max-width: 200px;
    height: auto;
}
.site-footer__copyright {
    font-size: clamp(10px, 0.73vw, 14px); /* 14/1920 */
    line-height: 150%;
    color: #999;
}
.site-footer__links {
    font-size: clamp(10px, 0.73vw, 14px); /* 14/1920 */
    line-height: 150%;
    color: #999;
}
.site-footer__links a {
    color: #14387F;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}
.site-footer__links a:hover {
    color: #0f2d66;
    text-decoration: underline;
}


/* ==========================================================================
 * LEGACY — Stili per index.html (compatibilità con struttura Bootstrap)
 * ========================================================================== */

/* Font faces per compatibilità con font locali caricati da index.html */
@font-face {
    font-family: "Roboto-Light";
    src: url("https://morehipsymposium26.medacta.com/assets/stylesheets/fonts/Roboto-Light-webfont.woff") format('woff');
}
@font-face {
    font-family: "Roboto-Medium";
    src: url("https://morehipsymposium26.medacta.com/assets/stylesheets/fonts/Roboto-Medium-webfont.woff") format('woff');
}
@font-face {
    font-family: "Roboto-Regular";
    src: url("https://morehipsymposium26.medacta.com/assets/stylesheets/fonts/Roboto-Regular-webfont.woff") format('woff');
}
@font-face {
    font-family: "RobotoCondensed-Light";
    src: url("https://morehipsymposium26.medacta.com/assets/stylesheets/fonts/RobotoCondensed-Light-webfont.woff") format('woff');
}
@font-face {
    font-family: "RobotoCondensed-Regular";
    src: url("https://morehipsymposium26.medacta.com/assets/stylesheets/fonts/RobotoCondensed-Regular-webfont.woff") format('woff');
}

strong { font-weight: 500; }
.strong { font-weight: bold; font-style: normal; }
.small { font-size: 0.9em; }

.external { margin-left: 0; margin-right: 0; }
.col-no-padding { padding: 0; }
.text-muted { color: #AAA; }

.content-box > div { margin-bottom: 3%; }

.text-box {
    font-size: 1.2em;
    padding: 15px 25px;
    border: 1px solid rgb(165,165,165);
    border-radius: 4px;
    background: linear-gradient(white, rgb(246,246,246));
}

.box-buttons { padding: 1%; text-align: center; width: 100%; }
.box-buttons input { width: 100%; max-width: 200px; margin-bottom: 1em; }

.toogler { cursor: pointer; }
.toogler:hover { text-decoration: underline; }

.session-box { text-align: left; padding: 1%; }
.session-box:last-child { border: none; }
.session-box .col-sm-8:first-child { padding-bottom: 3%; }
.session-box-details { margin-left: 25px; }
.session-speaker { white-space: nowrap; }

.btn-collapser { display: none; margin-right: 10px; text-decoration: none; }
.glyphicon-play { color: #666666; font-size: 0.6em; }
.grey-text { color: #666666; }

.contact-form label { min-width: 20%; }
.contact-form input,
.contact-form select,
.contact-form textarea { min-width: 70%; }
#sentMessage { font-size: 1.5em; color: #FF0000; }

li { list-style-type: square; }

.navbar-main { float: none; text-align: center; margin-top: 1em; margin-bottom: 1em; }

/* DRAWER / NAVBAR */
.navbar-header { border: none; font-family: 'Roboto', sans-serif; color: #9d9d9d; }
.navbar-header a { font-size: 1.5em; }
.navbar-header a:hover { color: #9d9d9d; }
.navbar-form { border: transparent; }
.navbar-toggle { border: 1px solid #0A4185; margin: 23px; }
.navbar-toggle:hover { color: #0A4185; background-color: #ffffff; }
.navbar-toggle .icon-bar { color: #ffffff; background-color: #0A4185; }
.nav-pills > li.active > a,
.nav-pills > li.active > a:focus,
.nav-pills > li.active > a:hover { color: #0A4185; background-color: #ffffff; }
.navbar-nav > li > a { font-weight: unset; color: #545454; }

.menuHeader {
    color: #FFFFFF;
    background-color: #003F85;
    padding: 0.4em;
    width: 100%;
    border-radius: 4px;
}
.menuHeaderLink {
    background: linear-gradient(rgba(238,238,238,0), rgba(238,238,238,0), rgba(238,238,238,0.4));
    border-radius: 4px;
    border: 1px solid rgba(68,68,68,0.4);
    padding: 1em;
    text-align: center;
    width: 100%;
}
.menuHeaderImgLink {
    border-radius: 4px;
    border: 1px solid rgba(68,68,68,0.4);
    padding: 0;
    text-align: center;
    width: 100%;
    min-height: 220px;
}
.menuHeaderAppLink {
    background: linear-gradient(rgba(238,238,238,0), rgba(238,238,238,0), rgba(238,238,238,0.4));
    border-radius: 4px;
    border: 1px solid rgba(68,68,68,0.4);
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
}

.logo img { width: 100px; }
.logo_8more { margin: auto; width: 230px; }
.menuLine { margin-left: auto; margin-right: auto; }

.go-to-top { font-size: 2em; }
a.subtitle { font-weight: bold; }

a.btn-primary {
    color: white;
    background: #0A4185;
    border-radius: 5px;
    border: 1px solid #0a4185;
    padding: 4px 12px 2px;
    font-size: 1.15em;
    display: inline-block;
    text-decoration: none;
    width: 100px;
}
a.btn-primary:hover { color: #0A4185; background: white; }

.display-table { display: flex; align-items: center; margin-top: 1%; }
.right-case { display: inline-block; vertical-align: middle; float: none; }

#header { padding: 15px 30px 0 0; }
#bundle-menu {
    position: fixed; z-index: 1040; right: 21px; top: 50px;
    visibility: hidden; background: #fff; padding: 10px;
}
#menu-toggle-button-container {
    text-align: right; background-color: #ffffff; width: 140px;
    line-height: 30px; position: fixed; right: 21px; padding-right: 5px;
}
#menu-toggle-button { cursor: pointer; font-size: 1.2em; }
.nav>li>a { padding: 3px 9px; }
#logo_medacta { padding: 3%; }
.divider { height: 1px; margin: 5px 0 5px !important; overflow: hidden; background-color: #e5e5e5; }
#bundle-menu-small { float: left; }

#literature>ul>li { font-weight: bold; }
#literature>ul>ul>li { list-style-type: circle; }
.link_video:hover { font-weight: 900; }
.faculty_list { margin-bottom: 10px; }
.pull-center { margin-left: auto; margin-right: auto; }

/* Cookie directive buttons — stile blu coerente con grandrounds-hip */
#impliedsubmit,
#cookiemoreinfo {
    padding: 10px 20px;
    background: #14387F;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
#impliedsubmit:hover,
#cookiemoreinfo:hover {
    background: #0f2d66;
}


/* ==========================================================================
 * MOBILE — Figma base 402px
 * ========================================================================== */

@media (max-width: 640px) {

    /* --- BEM: Layout --- */
    .container {
        width: calc(100vw - 30px);
    }

    /* --- BEM: HEADER --- */
    .header { padding: 30px 0; }
    .header .container { padding: 0; }
    .header__logo img { height: 12.44vw; width: auto; }

    /* --- BEM: HERO --- */
    .hero { padding: 9.95vw 3.73vw; gap: 12.44vw; }
    .hero__heading { gap: 4.98vw; }
    .hero__badge { font-size: 23.75px; padding: 4px 20px; padding-left: calc(20px + 0.35em); }
    .hero__title { font-size: clamp(32px, 15.92vw, 64px); line-height: 80%; }
    .hero__description { font-size: clamp(14px, 4.98vw, 20px); }

    /* --- BEM: VIDEO GRID --- */
    .videos { padding: 9.95vw 0; }
    .videos__grid { grid-template-columns: 1fr; row-gap: 9.95vw; }
    .video-card__play { width: 19.06vw; height: 19.06vw; }
    .video-card__title { margin-top: 7.71vw; font-size: clamp(14px, 4.98vw, 20px); }

    /* --- BEM: BOTTOM CTA SECTION --- */
    .bottom-section { padding: 12.44vw 0; }
    .bottom-section .container { grid-template-columns: 1fr; gap: 12.44vw; }
    .cta-card { gap: 4.98vw; }
    .cta-card__image { aspect-ratio: 372 / 160; }
    .cta-card__heading { font-size: clamp(20px, 7.96vw, 32px); }
    .cta-card__text { font-size: clamp(14px, 4.98vw, 20px); }
    .cta-button { width: 100%; padding: 4.48vw 4.98vw; font-size: clamp(12.6px, 4.03vw, 16.2px); border-radius: 2.49vw; }

    /* --- BEM: FOOTER --- */
    .site-footer { padding: 9.95vw 3.73vw; gap: 4.98vw; }
    .site-footer__logo { width: 43.28vw; }
    .site-footer__copyright { font-size: clamp(10px, 2.99vw, 12px); }
    .site-footer__links { font-size: clamp(10px, 2.99vw, 12px); }
}

/* --- LEGACY: Mobile breakpoints per index.html --- */
@media (max-width: 767px) {
    #header { display: none; }
    .navbar-main { float: none; text-align: center; margin-top: 2em; margin-bottom: 2em; }
    .navbar-nav > li > a, .panel-body { font-size: 2em; }
    #logo_medacta { display: auto; }
    .links { font-size: 1.3em; }
    .menuLink { width: 260px; }
    .session-box-details { margin-left: auto; }
    h1 { font-size: 23px; }
    h3 { font-size: 1.7em; }
    .btn-collapser { display: flex; }
    #logo_footer_2 { font-size: 1.6em; color: #777777; display: inline; }
    #logo_footer_3 { display: none; }
    .logo_8more { width: 210px; }
    #mainBoxTop { display: none; }
    #mainBoxTop_small { display: auto; margin-top: 30px; margin-bottom: 30px; }
    #mainMenu { display: none; }
    #mainMenu_small { display: auto; margin-top: 10px; margin-bottom: 30px; }
    .menuHeader { cursor: pointer; font-size: 1.5em; margin-top: 0.5em; margin-bottom: 0; }
    .menuHeaderLink { font-size: 1em; margin-top: 0.3em; margin-bottom: 0.3em; }
    .menuHeaderImgLink { margin-top: 0.1em; margin-bottom: 0.1em; }
}

@media (min-width: 768px) {
    #header { display: inline; }
    .navbar-nav { float: none; }
    .navbar-nav>li { float: none; display: inline-block; }
    .navbar-nav > li > a { font-size: 1em; }
    #logo_medacta { display: none; }
    #logo_footer_3 { display: inline; }
    #mainBoxTop { display: auto; margin-left: 3%; margin-right: 3%; margin-bottom: 0; }
    #mainBoxTop_small { display: none; }
    #mainMenu { display: auto; }
    #mainMenu_small { display: none; }
    .menuHeader { font-size: 1.2em; margin-top: 2em; margin-bottom: 1em; }
    .menuHeaderLink { font-size: 1.2em; margin-bottom: 1em; }
    .menuHeaderImgLink { margin-bottom: 1em; }
}

@media (max-width: 800px) {
    #map { width: 380px; height: 300px; }
}

@media (max-width: 440px) {
    #map { width: 280px; height: 300px; }
}

@media (max-width: 959px) {
    .box-buttons { padding: 3%; }
}
