/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

.widget {
	margin: 0;
}


.margin-0 {
	margin: 0;
}

.consortium-carousel .swiper .elementor-swiper-button-prev{
	transform: translateX(-100%);
    left: 0;
}

.consortium-carousel .swiper .elementor-swiper-button-next{
	transform: translateX(100%);
	right: 0;
}

.consortium-carousel .elementor-image-carousel{
	align-items: center;
}

.e-con.logos-image {
    align-items: center;
}

@media (max-width: 768px) {
    body .e-con.logos-image {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;   
        box-sizing: border-box;
        width: 100%;
        margin: 0 auto;
    }
	
    body .e-con.logos-image .elementor-widget-container {
        margin: 0;
        display: flex; 
        justify-content: center;
        align-items: center;
    }

    body .e-con.logos-image img {
        width: 100%;  
        height: auto;  
        max-width: 100%;
        display: block;
        margin: 0;
    }
}

/* Griglia progetti */

.rp-grid-container { 
	display: grid; 
	grid-template-columns: repeat(3, 1fr); 
	gap: 10px;  
	width: 100%; 
    box-sizing: border-box; 
}

.rp-card { 
	display: flex; 
	flex-direction: column;
	padding: 15px; 
	min-height: 120px; 
	border-radius: 0px;
	transition: 0.2s; 
	text-decoration: none;
    color: inherit;
}

.rp-card:hover { 
	text-decoration: none;
    color: inherit;
	transform: translateY(-3px); 
	z-index: 10; 
	box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
        
.rp-card-header { 
	font-size: 16px; 
	font-weight: 700; 
	margin: 0 0 5px 0;
}
        
.rp-card-body { 
	font-size: 13px; 
	line-height: 1.3;
}

.code-project{
	font-weight: 700; 
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: inline-block;
    border-bottom: 2px solid;
	line-height: 1.4;
}

/*Card attiva */
.rp-card.is-active .rp-card-header {
	text-decoration: underline;
	text-decoration-thickness: 2px; 
	text-underline-offset: 3px;
    font-weight: 900;
}

/* Colori card */
.rp-card.cat-unipa{ 
	background-color: #faebad; 
}
.rp-card.cat-jgu{
	background-color: #dbeeb3; 
}
.rp-card.cat-upatras{ 
	background-color: #e2eff5; 
}.rp-card.cat-unilorr{
	background-color: #eccfb4; 
}

.rp-grid-container .rp-card:focus {
    color: #000;              /* Forza il testo nero */
    outline: 2px solid #000;  /* Bordo esterno nero per evidenziare la selezione */
    text-decoration: none;    /* Toglie la sottolineatura del link */
}

/* Forza il colore nero anche sugli elementi figli quando la card ha il focus */
.rp-grid-container .rp-card:focus .rp-card-header,
.rp-grid-container .rp-card:focus .rp-card-body {
    color: #000;
}

/* --- FIX FOCUS (Opzione 2: Ombra ed Evidenziazione) --- */
body .rp-grid-container .rp-card:focus {
    color: #000;
    
    /* Outline sottile per accessibilità tecnica */
    outline: 2px solid #000;
    outline-offset: 2px;
    
    /* Ombra nera forte esterna per dare importanza */
    box-shadow: 0 10px 25px rgba(0,0,0,0.25); 
    
    /* Trasformazione leggera per "alzare" la card (come l'hover) */
    transform: translateY(-3px);
    
    text-decoration: none;
    z-index: 20;
    position: relative;
}

body .rp-grid-container .rp-card:focus .rp-card-header,
body .rp-grid-container .rp-card:focus .rp-card-body {
    color: #000;
}

/* MEDIA QUERIES */

/* Sotto 768px */
@media (max-width: 768px) { 
    .rp-grid-container { 
        grid-template-columns: repeat(2, 1fr);
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .rp-card {
        padding: 12px;
        min-height: 100px;
    }
}

/* Sotto 576px */
@media (max-width: 576px) { 
    .rp-grid-container { 
        grid-template-columns: 1fr; 
        padding-left: 25px;
        padding-right: 25px;
    }

    .rp-card {
        padding: 12px;
        min-height: auto;
    }
	
    .rp-card-header { font-size: 15px; }
}

/* Stile del Link con Freccia */
.arrow-link {
    color: #333; 
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px; 
    font-weight: 500; 
    transition: 0.2s;
}

/* Link Team */
a.arrow-link {
    display: inline-block; 
    text-underline-offset: 4px;
    transition: all 0.2s ease; 
}

a.arrow-link::before {
    content: "\2192"; 
    display: inline-block;
    margin-right: 10px; 
    text-decoration: none;
    font-weight: 400;
	font-size: 1.4em;
    line-height: 1;
}
a.arrow-link:hover {
    opacity: 0.8;
	color: #000;
    text-decoration: underline; 
    text-decoration-thickness: 1px; 
    text-underline-offset: 4px; 
}

/* Card People */

.team-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

a.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff; 
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    text-decoration: none !important;
    color: inherit;
    --uni-color: #987F52;          
    transition: all 0.2s ease;
    position: relative;
    height: 100%;
}

a.team-card:hover {
    transform: translateY(-7px);
}

.team-avatar-wrap {
    margin-bottom: 20px;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 50%;
    background-color: #ffff;
    border: 2px solid var(--uni-color);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
        
img.team-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin-bottom: 0;
    transition: transform 0.2s ease;
}

.team-body { 
    width: 100%; 
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.team-affiliation {
    font-size: 13px;
    color: var(--uni-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.team-divider {
    width: 30px;
    height: 3px;
    background-color: var(--uni-color);
    margin: 0 auto 12px auto;
    opacity: 0.6;
}

.team-role {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    /*font-style: italic;*/
}

/* --- MEDIA QUERIES --- */

/* Sotto 991px */
@media (max-width: 991px) {
    .team-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    a.team-card {
        padding: 20px 10px; 
    }

    .team-avatar-wrap {
        width: 90px;
        height: 90px;
        margin-bottom: 15px;
    }

    .team-name { font-size: 17px; margin-bottom: 5px; }
    .team-affiliation { font-size: 11px; margin-bottom: 8px; }
    .team-role { font-size: 12px; }
}

/* Sotto 576px */
@media (max-width: 576px) {
    .team-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; 
    }

    a.team-card {
        padding: 15px 5px; 
        border-radius: 8px; 
    }

    .team-avatar-wrap {
        width: 65px; 
        height: 65px;
        margin-bottom: 10px;
        border-width: 1px; 
    }

    .team-name {
        font-size: 15px; 
        margin-bottom: 4px;
        word-wrap: break-word;
    }
    
    .team-affiliation {
        font-size: 9px; 
        line-height: 1.1;
        margin-bottom: 6px;
    }

    .team-divider {
        margin: 6px auto;
        width: 15px;
        height: 2px;
    }

    .team-role {
        font-size: 11px;
        line-height: 1.2;
    }
}
