@charset "UTF-8";
/* CSS Document per Country T&R Custom - American Vibes Layout */

/******************/
/* SPECIAL FONTS */
/******************/

@font-face { 
    font-family: 'Superclarendon'; 
    font-style: normal; 
    font-weight: 200; 
    src: url(../fonts/Superclarendon-light.woff2) format('woff2'); 
    font-display: swap; 
}

@font-face { 
    font-family: 'Superclarendon'; 
    font-style: normal; 
    font-weight: 400; 
    src: url(../fonts/Superclarendon-normal.woff2) format('woff2'); 
    font-display: swap; 
}

@font-face { 
    font-family: 'Superclarendon'; 
    font-style: normal; 
    font-weight: 700; 
    src: url(../fonts/Superclarendon-bold.woff2) format('woff2'); 
    font-display: swap;
}

@font-face { 
    font-family: 'BleedingCowboys'; 
    font-style: normal; 
    font-weight: normal; 
    src: url(../fonts/BleedingCowboys.woff2) format('woff2'); 
    font-display: swap;
}

/******************/
/*   ANIMATIONS   */
/******************/
@keyframes heroFadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes bgFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.animate-entrance { opacity: 0; animation: heroFadeInUp 1s cubic-bezier(0.215, 0.610, 0.355, 1) forwards; }
.cover img.bg { opacity: 0; animation: bgFadeIn 1.2s ease-out forwards; }

html.js-enabled .reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
html.js-enabled .reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; animation-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; animation-delay: 0.6s; }

/******************/
/* GENERIC STYLES */
/******************/
* { box-sizing: border-box; }
b, strong { font-weight: bold; }
i, em { font-style: italic; }

html, body { font-family: 'Poppins', Helvetica, Arial, sans-serif; color: #3d2f28; background-color: #efe6dd; line-height: 1.6; margin: 0; padding: 0; }

img { max-width: 100%; height: auto; display: block; }

a:focus-visible, .button:focus-visible, button:focus-visible { outline: 3px solid #7b291c; outline-offset: 4px; border-radius: 4px; }
a { color: #5c1e15; text-decoration: none; transition: all 0.3s ease; }
a:hover { text-decoration: underline; }

/* Focus Visibile */
.news-grid article a:focus-visible, .team-card a:focus-visible, .concert-grid article a:focus-visible { outline: 3px solid #7b291c; outline-offset: 4px; border-radius: 4px; display: block; }
    .news-grid article a:focus-visible .pic img, .team-card a:focus-visible img, .concert-grid article a:focus-visible .pic img { transform: scale(1.08);}

.font-western { font-family: 'BleedingCowboys', Georgia, serif; text-transform: uppercase; letter-spacing: 2px; }

/* Posizionamenti */
.aligncenter { text-align: center; }
.alignright { text-align: right; }
.alignleft { text-align: left !important; }
.alignmiddle { align-items: center; }

/* Spaziature */
.vspaced { padding-top: 60px; padding-bottom: 60px; }
.hspaced { padding-left: 8%; padding-right: 8%; }
.topspaced { padding-top: 40px; }
.bottomspaced { padding-bottom: 40px; }

/* Display */
.mobile { display: none; }
.desktop { display: block; }

/* Layout Columns */
.cols, .split { display: flex; flex-flow: row wrap; justify-content: space-between; }
.two.cols > * { width: 48%; }
.two.split > * { width: 50%; }
.three.cols > * { width: 30%; }
.three.cols .main { width: 70%; }

.three.cols.boxes { display: flex; flex-flow: row wrap; justify-content: space-between; gap: 30px; }
.three.cols.boxes > article { width: 31%; border-radius: 4px; overflow: hidden; }

/********************************/
/*   COLOURS and BACKGROUNDS    */
/********************************/
.bg-white { background-color: #ffffff; }
.bg-beige-light { background-color: #efe6dd; } 
.bg-beige-medium { background-color: #d6cbcf; }
.bg-brown { background-color: #24120a; color: #ffffff; }
.bg-dark-brown { background-color: #210d0a; color: #ffffff; }
.bg-wood { background: url('../img/deco/bg-wood.webp') repeat-y top center / 100% auto; }
.bg-paper { background: #d1c4bb url('../img/deco/bg-paper.svg') center/cover; background-blend-mode: multiply; outline: 2px dashed #3a1c14;  outline-offset: -15px; }

.text-brown { color: #4a1c14; }
.text-beige { color: #efe6dd; }
.text-white { color: #ffffff !important; }

/*********************/
/*      BUTTONS      */
/*********************/
.button { display: inline-block; padding: 25px 45px; font-weight: 700; text-transform: uppercase; font-size: 16px; letter-spacing: 1px; text-align: center; cursor: pointer; transition: all 0.3s ease; outline: 1px dashed #3a1c14;  outline-offset: -10px; background-color: #efe6dd; color: #4a1c14; border: 1px solid #4a1c14;  }
    .button:hover { text-decoration: none; background-color: #3f1a14; color:#efe6dd; border-color: #efe6dd; outline-color: #efe6dd;  }


/******************************/
/*    STILI PER IL LAYOUT     */
/******************************/

body { font-family: 'Superclarendon', 'Clarendon', 'Clarendon URW', Georgia, serif; font-weight:200; font-size:20px; }
.skip-link { position: absolute; top: -100px; left: 0; background: #210d0a; color: #efe6dd; padding: 10px 15px; z-index: 10000; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* Header */
header { display: flex; align-items: center; justify-content: flex-end; background-color: rgba(36, 18, 10, 1); position: sticky; top: 0; z-index: 999; padding: 15px 10%; width:100%; min-height: 80px; transition: all 0.3s ease-in-out; }
    header .logo { position: absolute; left: 10%; top:10px; }
        header .logo a { display:flex; align-items:center; justify-content: flex-start; flex-flow:row nowrap; }
            header .logo img { height: 60px; width: auto; transition: height 0.3s ease-in-out; }
                header .logo img { height:15vw; width:auto; transition: height 0.3s ease-in-out; margin-right:15px;  }
                header .logo span { display:none; }

    header .main-nav { margin-right:10%; }
    header .main-nav a[aria-current="page"],.main-nav summary.active-parent { color: #e5a65d; font-weight: bold; border-bottom: 2px solid #e5a65d;}
        header .main-nav ul { list-style: none; display: flex; gap: 30px; align-items: center; margin: 0; padding: 0; }
            header .main-nav a, header summary { font-size: 14px; color: #e2d2c8; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 400; }
                header .main-nav a:hover, .main-nav a.active { color: #ffffff; text-decoration: underline; }
                header .main-nav a .free { font-size:10px; color: #e5a65d; font-style: italic; }

    /* Dropdown Details / Summary */
    header .dropdown-details { position: relative; display: inline-block; }
    header .dropdown-summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 400; user-select: none; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
        header .dropdown-summary:focus-visible { outline: 2px solid #e2d2c8; outline-offset: 3px; border-radius: 2px; }
        header .dropdown-summary::-webkit-details-marker { display: none; }
        header .dropdown-summary:hover { color: #ffffff; }
    header .dropdown-icon { font-size: 0.75em; transition: transform 0.25s ease; }
    header .dropdown-details[open] .dropdown-icon { transform: rotate(180deg); }
    header .dropdown-menu { list-style: none; margin: 0; padding: 0; }
        header .dropdown-menu a { color: #e2d2c8; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }

    header .decoflag { position:absolute; top:0; right:0; width:15%; z-index:4; }

.main-header.scrolled { min-height: 60px; padding-top: 8px; padding-bottom: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.4); background-color: rgba(36, 18, 10, 0.98); }
    .main-header.scrolled logo { top: 50%; transform: translateY(-50%); }
    .main-header.scrolled .logo img { height: 42px; }
    .main-header.scrolled .logo span { display:block; color:#efe6dd; font-size:12px; }

/* Cover / Hero Section */
.cover { position: relative; top:0; width: 100%; height: 80vh; min-height: 500px; display: flex; align-items: center; justify-content: center; }
    .cover img.bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: brightness(0.65); }
        .cover .scroll { position: relative; z-index: 3; color: #efe6dd; max-width: 800px; }
            .cover .scroll h1 { font-size: 90px; margin-bottom: 5px; color: #efe6dd; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); font-family: 'BleedingCowboys'; line-height:1; }
            .cover .scroll .hero-sub { font-size: 18px; letter-spacing: 3px; margin-bottom: 30px; }
            .cover .scroll .text-highlight { background-color: #962635; color: #efe6dd; padding: 10px 20px; }
    .cover .decoflag { position:absolute; bottom:0; left:0; width:40%; z-index:4; }

/* Date Banner */
.event-date-banner { font-size: 30px; margin: 0; line-height: 1.3; color: #efe6dd; letter-spacing: 2px; }

/* Title Component con ornamento */
.titlewrapper .decorated-title { display: inline-block; position: relative; font-size: 48px; margin: 0 0 50px 0; font-weight: normal; }

/* News Section Cards */
.news-grid article .pic { position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
    .news-grid article .pic img { width: 100%; height: auto; object-fit: cover; transition: transform 0.4s ease; }
        .news-grid article:hover .pic img { transform: scale(1.05); }
    .badge-date { position: absolute; top: 0; left:0; background: #2f2e5d; color: #efe6dd; font-size: 24px; padding: 4px 16px; z-index: 2; font-weight: bold; }
    .icon-plus { position: absolute; bottom: 15px; right: 15px; width:80px; height: 80px; border: 4px solid #efe6dd; border-radius: 50%; color: #efe6dd; display: flex; align-items: center; justify-content: center; z-index: 2; background-color: rgba(0,0,0,0.3); font-size:80px; }
    .news-grid article .textwrapper { padding: 20px; }
    .news-grid article h3 { font-size: 24px; margin: 0; color: #4a1c14; font-weight: bold; }

/* Banner Separatori */
.banner-separator { width: 100%; overflow: hidden; }
    .banner-separator img { width: 100%; height: 100%; object-fit: cover; }

/* Coreografi Section Grid */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
    .team-card { position: relative; background-color: #210d0a; border: 1px solid #4a1c14; text-align: center; overflow: hidden; }
        .team-card img { width: 100%; object-fit: cover; transition: transform 0.4s ease; }
            .team-card:hover img { transform: scale(1.05); }
        .team-card .card-caption { width:94%; padding: 15px; bottom:3%; left:3%; background-color: #3f1a14CC; border:1px solid #cccccccc; position:absolute; z-index:2; }
        .team-card h3 { font-size: 16px; margin: 0; color: #efe6dd; font-weight: bold; }
        .team-card p { font-size: 13px; margin: 0; color: #e2d2c8; }

/* Concerti Section Grid */
.concert-grid article .pic { position: relative; overflow: hidden; }
    .concert-grid article .pic img { width: 100%; object-fit: cover; transition: transform 0.4s ease; }
        .concert-grid article:hover .pic img { transform: scale(1.05); }
.concert-meta { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; z-index: 2; }
    .concert-date { background: #2f2e5d; color: #efe6dd; font-size: 18px; padding: 5px 10px; font-weight: bold; }
    .concert-time { background-color: #8c1d18; color: #ffffff; font-size: 18px; padding: 5px 10px; font-weight: bold; }
.concert-grid article h3 { font-size: 24px; margin: 30px 0 0 0; color: #4a1c14; text-transform: uppercase; }

/* La Fiera Section Layout */
.feature-box { align-content: flex-start }
    .feature-box .pic img { width:100%; object-fit: cover; border-radius: 0;  }
    .feature-box .paper-box { padding: 50px;  display:flex; align-items:center; height:auto; }

    .feature-box>*:nth-child(odd) { margin-top:-50px; margin-bottom:50px; }
    .feature-box>*:nth-child(even) { margin-top:50px; margin-bottom:-50px; }
    .feature-box:last-of-type { margin-bottom:80px; }

/* Programma */
.program h2 { background-color:#441707; color:#efe6dd; padding:15px 25px; font-size:24px; text-align:center; outline: 1px dashed #efe6dd;  outline-offset: -10px; }
    .program article { border:1px dotted #666; margin-bottom:10px; padding:10px; border-left:10px solid #ccc; }
        .program article .pic { width: 30%; }        
        .program article .main { width: 70%; }
            .program article.live { border-color: #e2bd85; }
            .program article.catalan {  border-color: #DFA691; }
            .program article.workshop {  border-color: #D3C3B1; }
            .program article.linedance {  border-color: #8FA3B0; }
            .program article.djset {  border-color: #d7cadf; }
            .program article.outdoor {  border-color: #92A68A; }

        .program article h3 { margin:0; text-transform: uppercase; font-size:14px; }
        .program article .thumb { width:80%; }
        .program article .time, .program article .where { margin:0; font-size:14px; }
        .program article .where { border-radius:10px; color:#efe6dd; display:inline-block; padding:2px 10px; font-size:12px; }
            .pavillion { background:#a07b69!important; color:#efe6dd!important }
            .court { background:#7d9b84; color:#efe6dd; }
            .live { background: #e2bd85; }
            .catalan { background: #DFA691; }
            .workshop { background: #D3C3B1; }
            .linedance { background: #8FA3B0; }
            .djset { background: #c8acc3; }
.small { font-size:14px; }

.filters a { padding:4px 15px; display:inline-block; margin:5px 10px; }
.program-nav { display:none; scroll-margin-top: 60px; }
    .program-nav a { padding:4px 15px; display:inline-block; margin:5px 10px; }

/* FAQ Section Accessibile */
#faq { scroll-margin-top: 90px; }
.faq-container { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background-color: #efe6dd; border: 1px solid #4a1c14; border-radius: 4px; overflow: hidden; transition: background-color 0.2s ease; }
    .faq-item[open] { background-color: #ffffff; }
    .faq-summary { list-style: none; padding: 20px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: #4a1c14; font-size: 18px; user-select: none; }
        .faq-summary::-webkit-details-marker { display: none; }
        .faq-summary:focus-visible { outline: 3px solid #7b291c; outline-offset: -3px; }
        .faq-summary:hover { background-color: #e2d2c8; }
    .faq-icon { font-size: 24px; font-weight: bold; transition: transform 0.25s ease; color: #7b291c; display: inline-block; }
    .faq-item[open] .faq-icon { transform: rotate(45deg); }
    .faq-content { padding: 0 25px 20px 25px; color: #3d2f28; font-size: 16px; line-height: 1.6; border-top: 1px dotted #4a1c14; margin-top: 5px; padding-top: 15px; }

/* Dettagli e pagine di testo */
.breadcrumbs { font-size:14px; }
    .breadcrumbs a { font-weight:bold; }

.text h2 { margin-top:0; }    
.text a { text-decoration: underline; }
.text section { margin-bottom:50px; }
    .text section:last-of-type { margin-bottom:0; }

.detail .pic img { width:100%; }
.detail .text { margin-left:5%; } 
    .detail .text h2 { margin-top:0; font-size:16px; } 

/* Footer */
.main-footer { background-color: #170806; border-top: 3px solid #4a1c14; }
    .main-footer a { color:#e2d2c8; text-decoration: underline; }
        .main-footer a:hover { color:#fff; } 
    .footer-logo { margin-bottom: 25px; }
        .footer-logo img { height:100px; }
    .footer-nav ul { list-style: none; padding: 0; margin: 0 0 30px 0; }
        .footer-nav a { font-size: 14px; font-weight: bold; }
    .social-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; }
        .social-links img { filter: brightness(0) invert(1); opacity: 0.8; transition: opacity 0.3s; width:40px; }
            .social-links img:hover { opacity: 1; }
    .footer-address p { font-size: 14px; color: #e2d2c8; margin: 0; font-weight: bold; margin-top:30px; }

.footer-bottom { border-top: 1px solid #a38f85; margin-top: 30px; padding-top: 20px; font-size: 12px; color: #e2d2c8; }


/****************************/
/*       STILI DESKTOP      */
/****************************/
@media only screen and (min-width: 1025px) { 
    .mobile { display:none; }
    .desktop { display:block; }
    header .has-dropdown { position:relative; }
    header .main-nav .dropdown-menu { flex-flow:column wrap; position:absolute; top:50px; left:0; text-align:left;  min-width: 220px; background-color: #210d0a; border: 1px solid #4a1c14; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); z-index: 100; gap:0; }
        .dropdown-menu li { display: block; margin: 0; border-top:1px dotted #efe6dd; width:100%;}
            .dropdown-menu li a { display: block; padding: 20px 30px; font-size: 13px; text-transform: uppercase; white-space: nowrap; border: none; text-align:left; width:100%; }
                .dropdown-menu li a:hover { background-color: #3f1a14; color: #ffffff; text-decoration: underline; }

    /* Submenu Animation */
    header .dropdown-details[open] .dropdown-menu { animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
}

@keyframes dropdownFadeIn {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/****************************/
/*    STILI MEDI / TABLET   */
/****************************/
@media only screen and (max-width: 1024px) {
    .mobile { display:block; }
    .desktop { display:none; }
    .hamburger-btn { display: flex; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; cursor: pointer; z-index: 1001; padding: 0; border: 0; background: transparent; color: #ffffff; }
    .hamburger-line { display: block; height: 3px; width: 100%; background-color: #ffffff; border-radius: 3px; transition: transform 0.3s ease, opacity 0.3s ease; }

    .hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
    .hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

    .main-header .main-nav { position: fixed; top: 0; right: -100%; width: 85vw; max-width: 360px; height: 100vh; background-color: #210d0a; box-shadow: -5px 0 15px rgba(0,0,0,0.5); z-index: 999; padding: 80px 30px; transition: right 0.4s ease; overflow-y: auto; margin: 0; }
    .main-header .main-nav.is-open { right: 0; }
        .main-header .main-nav ul { flex-direction: column; gap: 15px; align-items: flex-start; margin-top:20px; margin-left:15px;}
            .main-header .main-nav ul li a { display: block; width: 100%; border-bottom: 1px solid #331510; padding-top: 12px; padding-bottom: 12px; }

    .menu-overlay { display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0,0,0,0.6); z-index: 998; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s ease, visibility 0.4s ease; }
        .menu-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
        .dropdown-details { width: 100%; }
        .dropdown-summary { font-size: 14px; padding: 12px 0; width: 100%; border-bottom: 1px solid #331510; }
        .dropdown-menu { padding-left: 30px; margin-top: 15px; border-left: 3px dotted #e2d2c8; background: rgba(0, 0, 0, 0.2); }
        .dropdown-menu a { display: block; padding: 10px 15px; font-size: 13px; border: none !important; }

    .two.cols { flex-direction: column; gap: 35px; }
    .two.cols > div { width: 100%; }
    .three.cols.boxes > article { width: 46%; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }

    footer { text-align:center; }
    footer img { margin:0 auto; }

}

/******************************/
/*    STILI PER SMARTPHONE    */
/******************************/
@media only screen and (max-width: 767px) {
    .hspaced { padding-left: 5%; padding-right: 5%; }
    .vspaced { padding-top: 40px; padding-bottom: 40px; }
    
    header .logo img { height:20vw;}
    .hamburger-btn:focus-visible { outline: 3px solid #7b291c; outline-offset: 4px; border-radius: 4px; }
    .cover .scroll h1 { font-size: 56px; margin-bottom:30px; }
    .cover .scroll .hero-sub { font-size: 14px; }
    .event-date-banner { font-size: 22px; }
    
    .two.split > div{ width: 100%; }
    .feature-box>*:nth-child(odd), .feature-box>*:nth-child(even) { margin:0; }
    .feature-box:last-of-type { margin:0; }
    .program-nav { display:block; position:fixed; bottom:0; left:0; width:100%; padding:15px 5%; text-align:center; z-index:99999; transform:none !important; will-change:auto; background: #e2d2c8; }
    #giorno1, #giorno2, #giorno3 { scroll-margin-top: 100px; }
    
    .three.cols.boxes > article, .two.cols>*, .three.cols>* { width: 100%; }
    .team-grid { grid-template-columns: 1fr; }
    .feature-box .padding-box { padding: 25px; }
}

/******************************/
/*    ACCESSIBILITY ISSUES    */
/******************************/
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll, .animate-entrance, .cover img.bg {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .main-header .main-nav, .menu-overlay, .hamburger-line {
        transition: none !important;
    }
}